summaryrefslogtreecommitdiffstats
path: root/ui/src/utils.ts
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-01-26 12:35:47 -0500
committerDessalines <tyhou13@gmx.com>2020-01-26 12:35:47 -0500
commitfc0495894d2c416b78f568323e3a8a56a04b03d0 (patch)
tree180f31ce669ea67509029ca5f475b9d08660ece7 /ui/src/utils.ts
parent6f8e174d191a8dc89669b114a593ec20e7cd2a26 (diff)
Adding finnish to moment, dropdown.
Diffstat (limited to 'ui/src/utils.ts')
-rw-r--r--ui/src/utils.ts4
1 files changed, 4 insertions, 0 deletions
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';
}