summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-07-01 18:50:38 -0400
committerDessalines <tyhou13@gmx.com>2020-07-01 18:50:38 -0400
commit360e7aec424ca07a0329e18549f8dce692495ed8 (patch)
tree36241237085e3a0b7783551e7ed9648a000b63f4
parent42c5c9fd654f2adacbd1a689386f04df1fd87373 (diff)
Adding Albanian for weblate.
-rw-r--r--ui/src/i18next.ts2
-rw-r--r--ui/src/utils.ts4
-rw-r--r--ui/translations/sq.json1
3 files changed, 7 insertions, 0 deletions
diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts
index 5fa8f4e8..7a341cea 100644
--- a/ui/src/i18next.ts
+++ b/ui/src/i18next.ts
@@ -24,6 +24,7 @@ import { gl } from './translations/gl';
import { tr } from './translations/tr';
import { hu } from './translations/hu';
import { uk } from './translations/uk';
+import { sq } from './translations/sq';
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
const resources = {
@@ -51,6 +52,7 @@ const resources = {
tr,
hu,
uk,
+ sq,
};
function format(value: any, format: any, lng: any): any {
diff --git a/ui/src/utils.ts b/ui/src/utils.ts
index 7bf6fdd1..48d2095d 100644
--- a/ui/src/utils.ts
+++ b/ui/src/utils.ts
@@ -21,6 +21,7 @@ import 'moment/locale/gl';
import 'moment/locale/tr';
import 'moment/locale/hu';
import 'moment/locale/uk';
+import 'moment/locale/sq';
import {
UserOperation,
@@ -83,6 +84,7 @@ export const languages = [
{ code: 'fi', name: 'Suomi' },
{ code: 'fr', name: 'Français' },
{ code: 'sv', name: 'Svenska' },
+ { code: 'sq', name: 'Shqip' },
{ code: 'tr', name: 'Türkçe' },
{ code: 'uk', name: 'українська мова' },
{ code: 'ru', name: 'Русский' },
@@ -414,6 +416,8 @@ export function getMomentLanguage(): string {
lang = 'hu';
} else if (lang.startsWith('uk')) {
lang = 'uk';
+ } else if (lang.startsWith('sq')) {
+ lang = 'sq';
} else {
lang = 'en';
}
diff --git a/ui/translations/sq.json b/ui/translations/sq.json
new file mode 100644
index 00000000..0967ef42
--- /dev/null
+++ b/ui/translations/sq.json
@@ -0,0 +1 @@
+{}