feat(frontend-app-api): add default translation api impl
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -492,6 +492,21 @@ function createApiHolder(
|
||||
factory: () => AppThemeSelector.createWithStorage(themeExtensions),
|
||||
});
|
||||
|
||||
factoryRegistry.register('static', {
|
||||
api: appLanguageApiRef,
|
||||
deps: {},
|
||||
factory: () => AppLanguageSelector.createWithStorage(),
|
||||
});
|
||||
|
||||
factoryRegistry.register('default', {
|
||||
api: translationApiRef,
|
||||
deps: { languageApi: appLanguageApiRef },
|
||||
factory: ({ languageApi }) =>
|
||||
I18nextTranslationApi.create({
|
||||
languageApi,
|
||||
}),
|
||||
});
|
||||
|
||||
factoryRegistry.register('static', {
|
||||
api: configApiRef,
|
||||
deps: {},
|
||||
|
||||
Reference in New Issue
Block a user