Skip to content

Commit f39db24

Browse files
committed
I18Next: Synchronice types and actual used settings
`returnNull` was set to false in the types, but not in the actuall settings. This has now been fixed, and the `tFunction` will never return nulls.
1 parent 1eedac6 commit f39db24

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ui/src/i18n.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ i18nextUse(initReactI18next).init({
2323
lng: defaultLocale,
2424
fallbackLng: defaultLocale,
2525
resources,
26+
// Do not return null from t function
27+
returnNull: false,
2628
debug: false,
2729
ns: ['common', 'accessibility'],
2830
defaultNS: 'common',

0 commit comments

Comments
 (0)