From 4e5561283392d2ab1545cabb4455a8ffc490f86b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 18 Oct 2019 17:20:27 -0700 Subject: Running prettier on code. - #305 , #309 --- ui/src/i18next.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'ui/src/i18next.ts') 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 }; -- cgit v1.2.3 From 02dd9ac32a491e7ee41a012b11ff90666455066b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 19 Oct 2019 17:46:29 -0700 Subject: Adding username mentions / tagging from comments. - Fixes #293 --- ui/src/i18next.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ui/src/i18next.ts') diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts index 083cc7f6..bfe720ff 100644 --- a/ui/src/i18next.ts +++ b/ui/src/i18next.ts @@ -11,7 +11,6 @@ import { zh } from './translations/zh'; import { nl } from './translations/nl'; // 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, @@ -30,7 +29,7 @@ function format(value: any, format: any, lng: any) { } i18n.init({ - debug: true, + debug: false, // load: 'languageOnly', // initImmediate: false, -- cgit v1.2.3