mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 06:36:17 +00:00
Adding danish, not yet translated.
This commit is contained in:
parent
3278576927
commit
99796c99ca
|
@ -1 +1 @@
|
||||||
Subproject commit 0a30493c625167c9e973bfcce6d558a15c119db6
|
Subproject commit 39e236b6456db40640e811001b36028f4062e8b7
|
|
@ -28,6 +28,7 @@ import { sq } from './translations/sq';
|
||||||
import { km } from './translations/km';
|
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';
|
||||||
|
|
||||||
// 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 = {
|
||||||
|
@ -59,6 +60,7 @@ const resources = {
|
||||||
km,
|
km,
|
||||||
ga,
|
ga,
|
||||||
sr_Latn,
|
sr_Latn,
|
||||||
|
da,
|
||||||
};
|
};
|
||||||
|
|
||||||
function format(value: any, format: any): any {
|
function format(value: any, format: any): any {
|
||||||
|
|
|
@ -26,6 +26,7 @@ import 'moment/locale/km';
|
||||||
import 'moment/locale/ga';
|
import 'moment/locale/ga';
|
||||||
import 'moment/locale/sr';
|
import 'moment/locale/sr';
|
||||||
import 'moment/locale/ko';
|
import 'moment/locale/ko';
|
||||||
|
import 'moment/locale/da';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
UserOperation,
|
UserOperation,
|
||||||
|
@ -89,6 +90,7 @@ export const languages = [
|
||||||
{ code: 'eu', name: 'Euskara' },
|
{ code: 'eu', name: 'Euskara' },
|
||||||
{ code: 'eo', name: 'Esperanto' },
|
{ code: 'eo', name: 'Esperanto' },
|
||||||
{ code: 'es', name: 'Español' },
|
{ code: 'es', name: 'Español' },
|
||||||
|
{ code: 'da', name: 'Dansk' },
|
||||||
{ code: 'de', name: 'Deutsch' },
|
{ code: 'de', name: 'Deutsch' },
|
||||||
{ code: 'ga', name: 'Gaeilge' },
|
{ code: 'ga', name: 'Gaeilge' },
|
||||||
{ code: 'gl', name: 'Galego' },
|
{ code: 'gl', name: 'Galego' },
|
||||||
|
@ -427,6 +429,8 @@ export function getMomentLanguage(): string {
|
||||||
lang = 'sr';
|
lang = 'sr';
|
||||||
} else if (lang.startsWith('ko')) {
|
} else if (lang.startsWith('ko')) {
|
||||||
lang = 'ko';
|
lang = 'ko';
|
||||||
|
} else if (lang.startsWith('da')) {
|
||||||
|
lang = 'da';
|
||||||
} else {
|
} else {
|
||||||
lang = 'en';
|
lang = 'en';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue