Adding danish, not yet translated.

This commit is contained in:
Dessalines 2020-12-09 10:15:53 -05:00
parent 3278576927
commit 99796c99ca
3 changed files with 7 additions and 1 deletions

@ -1 +1 @@
Subproject commit 0a30493c625167c9e973bfcce6d558a15c119db6
Subproject commit 39e236b6456db40640e811001b36028f4062e8b7

View File

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

View File

@ -26,6 +26,7 @@ import 'moment/locale/km';
import 'moment/locale/ga';
import 'moment/locale/sr';
import 'moment/locale/ko';
import 'moment/locale/da';
import {
UserOperation,
@ -89,6 +90,7 @@ export const languages = [
{ code: 'eu', name: 'Euskara' },
{ code: 'eo', name: 'Esperanto' },
{ code: 'es', name: 'Español' },
{ code: 'da', name: 'Dansk' },
{ code: 'de', name: 'Deutsch' },
{ code: 'ga', name: 'Gaeilge' },
{ code: 'gl', name: 'Galego' },
@ -427,6 +429,8 @@ export function getMomentLanguage(): string {
lang = 'sr';
} else if (lang.startsWith('ko')) {
lang = 'ko';
} else if (lang.startsWith('da')) {
lang = 'da';
} else {
lang = 'en';
}