diff options
Diffstat (limited to 'ui/src/i18next.ts')
-rw-r--r-- | ui/src/i18next.ts | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts index 069c820d..083cc7f6 100644 --- a/ui/src/i18next.ts +++ b/ui/src/i18next.ts @@ -22,26 +22,24 @@ const resources = { sv, ru, nl, -} +}; function format(value: any, format: any, lng: any) { - if (format === 'uppercase') return value.toUpperCase(); - return value; + if (format === 'uppercase') return value.toUpperCase(); + return value; } -i18n -.init({ +i18n.init({ debug: true, // load: 'languageOnly', // initImmediate: false, lng: getLanguage(), fallbackLng: 'en', - resources, - interpolation: { - format: format - - } + resources, + interpolation: { + format: format, + }, }); export { i18n, resources }; |