mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
20418dc4f9
* refactor(console,ui,demo-app): fix i18next types disable allowObjectInHTMLChildren for safer typing. use <DynamicT /> for all dynamic translations. * fix(console): i18n key in UserAccountInformation * refactor(console,ui): update <DynamicT /> and add tests
9 lines
294 B
TypeScript
9 lines
294 B
TypeScript
import i18next from 'i18next';
|
|
import { initReactI18next } from 'react-i18next';
|
|
|
|
void i18next.use(initReactI18next).init({
|
|
// Simple resources for testing
|
|
resources: { en: { translation: { admin_console: { general: { add: 'Add' } } } } },
|
|
lng: 'en',
|
|
react: { useSuspense: false },
|
|
});
|