summaryrefslogtreecommitdiffstats
path: root/ui/src
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src')
-rw-r--r--ui/src/i18next.ts4
-rw-r--r--ui/src/utils.ts8
2 files changed, 12 insertions, 0 deletions
diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts
index 2cd29000..f2b8c10e 100644
--- a/ui/src/i18next.ts
+++ b/ui/src/i18next.ts
@@ -1,6 +1,8 @@
import i18next from 'i18next';
import { getLanguage } from './utils';
import { en } from './translations/en';
+import { el } from './translations/el';
+import { eu } from './translations/eu';
import { eo } from './translations/eo';
import { es } from './translations/es';
import { de } from './translations/de';
@@ -21,6 +23,8 @@ import { ka } from './translations/ka';
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
const resources = {
en,
+ el,
+ eu,
eo,
es,
ka,
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';
}