If you'd like to add translations, take a look a look at the [English translation file](ui/src/translations/en.ts).
-- Languages supported: English (`en`), Chinese (`zh`), Dutch (`nl`), Esperanto (`eo`), French (`fr`), Spanish (`es`), Swedish (`sv`), German (`de`), Russian (`ru`), Italian (`it`).
+- Languages supported: English (`en`), Chinese (`zh`), Dutch (`nl`), Esperanto (`eo`), Finnish (`fi`), French (`fr`), Spanish (`es`), Swedish (`sv`), German (`de`), Russian (`ru`), Italian (`it`).
<!-- translations -->
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 = {
ru,
nl,
it,
+ fi,
};
function format(value: any, format: any, lng: any) {
import 'moment/locale/ru';
import 'moment/locale/nl';
import 'moment/locale/it';
+import 'moment/locale/fi';
import {
UserOperation,
{ 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: 'Русский' },
lang = 'nl';
} else if (lang.startsWith('it')) {
lang = 'it';
+ } else if (lang.startsWith('fi')) {
+ lang = 'fi';
} else {
lang = 'en';
}