summaryrefslogtreecommitdiffstats
path: root/ui/src/i18next.ts
diff options
context:
space:
mode:
authorMatteo Guglielmetti <MatteoGgl@users.noreply.github.com>2019-10-21 08:50:38 +0200
committerGitHub <noreply@github.com>2019-10-21 08:50:38 +0200
commitbab917f1be72a06451c5e0ea204477fd84b53d93 (patch)
tree1a921c402fc3a938119e982c0bea15217a507b51 /ui/src/i18next.ts
parent678021a3f2e8baebea7b93c9cb1ed0e4e553424a (diff)
parent395ef2675a8f954bb1376c87a5fae065588daebd (diff)
Merge branch 'master' into master
Diffstat (limited to 'ui/src/i18next.ts')
-rw-r--r--ui/src/i18next.ts19
1 files changed, 8 insertions, 11 deletions
diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts
index c45270fe..a2d743b1 100644
--- a/ui/src/i18next.ts
+++ b/ui/src/i18next.ts
@@ -12,7 +12,6 @@ import { nl } from './translations/nl';
import { it } from './translations/it';
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
-// TODO don't forget to add moment locales for new languages.
const resources = {
en,
eo,
@@ -24,25 +23,23 @@ const resources = {
ru,
nl,
it,
-}
+};
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({
- debug: true,
+i18n.init({
+ debug: false,
// load: 'languageOnly',
// initImmediate: false,
lng: getLanguage(),
fallbackLng: 'en',
- resources,
- interpolation: {
- format: format
-
+ resources,
+ interpolation: {
+ format: format,
}
});