diff --git a/packages/core-app-api/src/app/AppManager.tsx b/packages/core-app-api/src/app/AppManager.tsx index abba46764d..ac386c5140 100644 --- a/packages/core-app-api/src/app/AppManager.tsx +++ b/packages/core-app-api/src/app/AppManager.tsx @@ -81,7 +81,6 @@ import { resolveRouteBindings } from './resolveRouteBindings'; import { isReactRouterBeta } from './isReactRouterBeta'; import { InternalAppContext } from './InternalAppContext'; import { AppRouter, getBasePath } from './AppRouter'; -import { AppTranslationProvider } from './AppTranslationProvider'; import { AppLanguageSelector } from '../apis/implementations/AppLanguageApi'; import { I18nextTranslationApi } from '../apis/implementations/TranslationApi'; import { overrideBaseUrlConfigs } from './overrideBaseUrlConfigs'; @@ -345,26 +344,24 @@ export class AppManager implements BackstageApp { return ( - - - + + - - {children} - - - - + {children} + + + ); diff --git a/packages/core-app-api/src/app/AppTranslationProvider.tsx b/packages/core-app-api/src/app/AppTranslationProvider.tsx deleted file mode 100644 index 3d5e7e57e1..0000000000 --- a/packages/core-app-api/src/app/AppTranslationProvider.tsx +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2023 The Backstage Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import React, { PropsWithChildren } from 'react'; -import { useApi } from '@backstage/core-plugin-api'; -import { appTranslationApiRef } from '@backstage/core-plugin-api/alpha'; -import { I18nextProvider } from 'react-i18next'; - -/** @alpha */ -export function AppTranslationProvider({ children }: PropsWithChildren<{}>) { - const appTranslationAPi = useApi(appTranslationApiRef); - const i18n = appTranslationAPi.getI18n(); - return {children}; -}