Adding occitan.

This commit is contained in:
Dessalines 2021-01-15 16:57:45 -05:00
parent bb4a18510c
commit a2b0f6ec04
3 changed files with 6 additions and 1 deletions

@ -1 +1 @@
Subproject commit ca499a90d6c026a4f37768fb82edcd18ace44115
Subproject commit 916c8e709717f736984942fe3d21fc69d9d22285

View file

@ -29,6 +29,7 @@ import { km } from './translations/km';
import { ga } from './translations/ga';
import { sr_Latn } from './translations/sr_Latn';
import { da } from './translations/da';
import { oc } from './translations/oc';
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
const resources = {
@ -61,6 +62,7 @@ const resources = {
ga,
sr_Latn,
da,
oc,
};
function format(value: any, format: any): any {

View file

@ -107,6 +107,7 @@ export const languages = [
{ code: 'hi', name: 'मानक हिन्दी' },
{ code: 'fa', name: 'فارسی' },
{ code: 'ja', name: '日本語' },
{ code: 'oc', name: 'Occitan' },
{ code: 'pl', name: 'Polski' },
{ code: 'pt_BR', name: 'Português Brasileiro' },
{ code: 'zh', name: '中文' },
@ -446,6 +447,8 @@ export function getMomentLanguage(): string {
lang = 'ko';
} else if (lang.startsWith('da')) {
lang = 'da';
} else if (lang.startsWith('oc')) {
lang = 'oc';
} else {
lang = 'en';
}