mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 06:36:17 +00:00
Adding croatian.
This commit is contained in:
parent
72a1f141ec
commit
ef19b9f6b8
|
@ -30,6 +30,7 @@ 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';
|
import { oc } from './translations/oc';
|
||||||
|
import { hr } from './translations/hr';
|
||||||
|
|
||||||
// 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 = {
|
||||||
|
@ -63,6 +64,7 @@ const resources = {
|
||||||
sr_Latn,
|
sr_Latn,
|
||||||
da,
|
da,
|
||||||
oc,
|
oc,
|
||||||
|
hr,
|
||||||
};
|
};
|
||||||
|
|
||||||
function format(value: any, format: any): any {
|
function format(value: any, format: any): any {
|
||||||
|
|
|
@ -27,6 +27,7 @@ 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 'moment/locale/da';
|
||||||
|
import 'moment/locale/hr';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
UserOperation,
|
UserOperation,
|
||||||
|
@ -102,6 +103,7 @@ export const languages = [
|
||||||
{ code: 'de', name: 'Deutsch' },
|
{ code: 'de', name: 'Deutsch' },
|
||||||
{ code: 'ga', name: 'Gaeilge' },
|
{ code: 'ga', name: 'Gaeilge' },
|
||||||
{ code: 'gl', name: 'Galego' },
|
{ code: 'gl', name: 'Galego' },
|
||||||
|
{ code: 'hr', name: 'hrvatski' },
|
||||||
{ code: 'hu', name: 'Magyar Nyelv' },
|
{ code: 'hu', name: 'Magyar Nyelv' },
|
||||||
{ code: 'ka', name: 'ქართული ენა' },
|
{ code: 'ka', name: 'ქართული ენა' },
|
||||||
{ code: 'ko', name: '한국어' },
|
{ code: 'ko', name: '한국어' },
|
||||||
|
@ -451,6 +453,8 @@ export function getMomentLanguage(): string {
|
||||||
lang = 'da';
|
lang = 'da';
|
||||||
} else if (lang.startsWith('oc')) {
|
} else if (lang.startsWith('oc')) {
|
||||||
lang = 'oc';
|
lang = 'oc';
|
||||||
|
} else if (lang.startsWith('hr')) {
|
||||||
|
lang = 'hr';
|
||||||
} else {
|
} else {
|
||||||
lang = 'en';
|
lang = 'en';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue