From fc0495894d2c416b78f568323e3a8a56a04b03d0 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 26 Jan 2020 12:35:47 -0500 Subject: Adding finnish to moment, dropdown. --- ui/src/i18next.ts | 2 ++ ui/src/utils.ts | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'ui/src') diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts index aaaecd04..2da3dfbe 100644 --- a/ui/src/i18next.ts +++ b/ui/src/i18next.ts @@ -10,6 +10,7 @@ import { ru } from './translations/ru'; import { zh } from './translations/zh'; import { nl } from './translations/nl'; import { it } from './translations/it'; +import { fi } from './translations/fi'; // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66 const resources = { @@ -23,6 +24,7 @@ const resources = { ru, nl, it, + fi, }; function format(value: any, format: any, lng: any) { diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 7803ee4e..6c22e25b 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -7,6 +7,7 @@ import 'moment/locale/sv'; import 'moment/locale/ru'; import 'moment/locale/nl'; import 'moment/locale/it'; +import 'moment/locale/fi'; import { UserOperation, @@ -256,6 +257,7 @@ export const languages = [ { code: 'es', name: 'Español' }, { code: 'de', name: 'Deutsch' }, { code: 'zh', name: '中文' }, + { code: 'fi', name: 'Suomi' }, { code: 'fr', name: 'Français' }, { code: 'sv', name: 'Svenska' }, { code: 'ru', name: 'Русский' }, @@ -298,6 +300,8 @@ export function getMomentLanguage(): string { lang = 'nl'; } else if (lang.startsWith('it')) { lang = 'it'; + } else if (lang.startsWith('fi')) { + lang = 'fi'; } else { lang = 'en'; } -- cgit v1.2.3