summaryrefslogtreecommitdiffstats
path: root/ui/src/utils.ts
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-05-16 22:52:28 -0400
committerDessalines <tyhou13@gmx.com>2020-05-16 22:52:28 -0400
commit6fe4184f72ca39011a62c8df572ae419a1288334 (patch)
treed699e54851b05a78e21d1e7bab72d0d97b70b384 /ui/src/utils.ts
parentd2e38b106229360994bb94ac5cb783d9b4707e25 (diff)
Adding Greek and Basque languages for weblate.
Diffstat (limited to 'ui/src/utils.ts')
-rw-r--r--ui/src/utils.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/src/utils.ts b/ui/src/utils.ts
index f18d996e..69afc7a4 100644
--- a/ui/src/utils.ts
+++ b/ui/src/utils.ts
@@ -1,4 +1,6 @@
import 'moment/locale/es';
+import 'moment/locale/el';
+import 'moment/locale/eu';
import 'moment/locale/eo';
import 'moment/locale/de';
import 'moment/locale/zh-cn';
@@ -59,6 +61,8 @@ export const mentionDropdownFetchLimit = 10;
export const languages = [
{ code: 'ca', name: 'Català' },
{ code: 'en', name: 'English' },
+ { code: 'el', name: 'Ελληνικά' },
+ { code: 'eu', name: 'Euskara' },
{ code: 'eo', name: 'Esperanto' },
{ code: 'es', name: 'Español' },
{ code: 'de', name: 'Deutsch' },
@@ -370,6 +374,10 @@ export function getMomentLanguage(): string {
lang = 'ka';
} else if (lang.startsWith('hi')) {
lang = 'hi';
+ } else if (lang.startsWith('el')) {
+ lang = 'el';
+ } else if (lang.startsWith('eu')) {
+ lang = 'eu';
} else {
lang = 'en';
}