Adding Albanian for weblate.

This commit is contained in:
Dessalines 2020-07-01 18:50:38 -04:00
parent 42c5c9fd65
commit 360e7aec42
3 changed files with 7 additions and 0 deletions

2
ui/src/i18next.ts vendored
View file

@ -24,6 +24,7 @@ import { gl } from './translations/gl';
import { tr } from './translations/tr'; import { tr } from './translations/tr';
import { hu } from './translations/hu'; import { hu } from './translations/hu';
import { uk } from './translations/uk'; import { uk } from './translations/uk';
import { sq } from './translations/sq';
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66 // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
const resources = { const resources = {
@ -51,6 +52,7 @@ const resources = {
tr, tr,
hu, hu,
uk, uk,
sq,
}; };
function format(value: any, format: any, lng: any): any { function format(value: any, format: any, lng: any): any {

4
ui/src/utils.ts vendored
View file

@ -21,6 +21,7 @@ import 'moment/locale/gl';
import 'moment/locale/tr'; import 'moment/locale/tr';
import 'moment/locale/hu'; import 'moment/locale/hu';
import 'moment/locale/uk'; import 'moment/locale/uk';
import 'moment/locale/sq';
import { import {
UserOperation, UserOperation,
@ -83,6 +84,7 @@ export const languages = [
{ code: 'fi', name: 'Suomi' }, { code: 'fi', name: 'Suomi' },
{ code: 'fr', name: 'Français' }, { code: 'fr', name: 'Français' },
{ code: 'sv', name: 'Svenska' }, { code: 'sv', name: 'Svenska' },
{ code: 'sq', name: 'Shqip' },
{ code: 'tr', name: 'Türkçe' }, { code: 'tr', name: 'Türkçe' },
{ code: 'uk', name: 'українська мова' }, { code: 'uk', name: 'українська мова' },
{ code: 'ru', name: 'Русский' }, { code: 'ru', name: 'Русский' },
@ -414,6 +416,8 @@ export function getMomentLanguage(): string {
lang = 'hu'; lang = 'hu';
} else if (lang.startsWith('uk')) { } else if (lang.startsWith('uk')) {
lang = 'uk'; lang = 'uk';
} else if (lang.startsWith('sq')) {
lang = 'sq';
} else { } else {
lang = 'en'; lang = 'en';
} }

1
ui/translations/sq.json vendored Normal file
View file

@ -0,0 +1 @@
{}