summaryrefslogtreecommitdiffstats
path: root/ui/src/utils.ts
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-02-29 15:18:56 -0500
committerDessalines <tyhou13@gmx.com>2020-02-29 15:18:56 -0500
commitadba6b056f9f3bff6b55ff9863bb75ea847742e0 (patch)
tree3414f1471fe21f54ba030a9807195b6cbe5a7e28 /ui/src/utils.ts
parent4005fab0062fca9b67ebde4cf7292c3c5b873581 (diff)
Translation additions.
- Adding Japanese. Fixes #566 - Adding some German translations. Fixes #567 - Fixing pt-br
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 9d2798ef..66105720 100644
--- a/ui/src/utils.ts
+++ b/ui/src/utils.ts
@@ -11,6 +11,7 @@ import 'moment/locale/fi';
import 'moment/locale/ca';
import 'moment/locale/fa';
import 'moment/locale/pt-br';
+import 'moment/locale/ja';
import {
UserOperation,
@@ -278,6 +279,7 @@ export const languages = [
{ code: 'es', name: 'Español' },
{ code: 'de', name: 'Deutsch' },
{ code: 'fa', name: 'فارسی' },
+ { code: 'ja', name: '日本語' },
{ code: 'pt_BR', name: 'Português Brasileiro' },
{ code: 'zh', name: '中文' },
{ code: 'fi', name: 'Suomi' },
@@ -331,6 +333,8 @@ export function getMomentLanguage(): string {
lang = 'fa';
} else if (lang.startsWith('pt')) {
lang = 'pt-br';
+ } else if (lang.startsWith('ja')) {
+ lang = 'ja';
} else {
lang = 'en';
}