mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 07:36:37 +00:00
Adding occitan.
This commit is contained in:
parent
bb4a18510c
commit
a2b0f6ec04
|
@ -1 +1 @@
|
||||||
Subproject commit ca499a90d6c026a4f37768fb82edcd18ace44115
|
Subproject commit 916c8e709717f736984942fe3d21fc69d9d22285
|
|
@ -29,6 +29,7 @@ import { km } from './translations/km';
|
||||||
import { ga } from './translations/ga';
|
import { ga } from './translations/ga';
|
||||||
import { sr_Latn } from './translations/sr_Latn';
|
import { sr_Latn } from './translations/sr_Latn';
|
||||||
import { da } from './translations/da';
|
import { da } from './translations/da';
|
||||||
|
import { oc } from './translations/oc';
|
||||||
|
|
||||||
// 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 = {
|
||||||
|
@ -61,6 +62,7 @@ const resources = {
|
||||||
ga,
|
ga,
|
||||||
sr_Latn,
|
sr_Latn,
|
||||||
da,
|
da,
|
||||||
|
oc,
|
||||||
};
|
};
|
||||||
|
|
||||||
function format(value: any, format: any): any {
|
function format(value: any, format: any): any {
|
||||||
|
|
|
@ -107,6 +107,7 @@ export const languages = [
|
||||||
{ code: 'hi', name: 'मानक हिन्दी' },
|
{ code: 'hi', name: 'मानक हिन्दी' },
|
||||||
{ code: 'fa', name: 'فارسی' },
|
{ code: 'fa', name: 'فارسی' },
|
||||||
{ code: 'ja', name: '日本語' },
|
{ code: 'ja', name: '日本語' },
|
||||||
|
{ code: 'oc', name: 'Occitan' },
|
||||||
{ code: 'pl', name: 'Polski' },
|
{ code: 'pl', name: 'Polski' },
|
||||||
{ code: 'pt_BR', name: 'Português Brasileiro' },
|
{ code: 'pt_BR', name: 'Português Brasileiro' },
|
||||||
{ code: 'zh', name: '中文' },
|
{ code: 'zh', name: '中文' },
|
||||||
|
@ -446,6 +447,8 @@ export function getMomentLanguage(): string {
|
||||||
lang = 'ko';
|
lang = 'ko';
|
||||||
} else if (lang.startsWith('da')) {
|
} else if (lang.startsWith('da')) {
|
||||||
lang = 'da';
|
lang = 'da';
|
||||||
|
} else if (lang.startsWith('oc')) {
|
||||||
|
lang = 'oc';
|
||||||
} else {
|
} else {
|
||||||
lang = 'en';
|
lang = 'en';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue