Adding Albanian for weblate.
This commit is contained in:
parent
42c5c9fd65
commit
360e7aec42
3 changed files with 7 additions and 0 deletions
2
ui/src/i18next.ts
vendored
2
ui/src/i18next.ts
vendored
|
@ -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 {
|
||||
|
|
4
ui/src/utils.ts
vendored
4
ui/src/utils.ts
vendored
|
@ -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';
|
||||
}
|
||||
|
|
1
ui/translations/sq.json
vendored
Normal file
1
ui/translations/sq.json
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
Loading…
Reference in a new issue