mirror of https://github.com/LemmyNet/lemmy.git
Adding korean language template.
parent
2d5a50e80f
commit
3f0b3d7361
|
@ -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 { ko } from './translations/ko';
|
||||
|
||||
// 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,
|
||||
ko,
|
||||
};
|
||||
|
||||
function format(value: any, format: any, lng: any): any {
|
||||
|
|
|
@ -25,6 +25,7 @@ import 'moment/locale/sq';
|
|||
import 'moment/locale/km';
|
||||
import 'moment/locale/ga';
|
||||
import 'moment/locale/sr';
|
||||
import 'moment/locale/ko';
|
||||
|
||||
import {
|
||||
UserOperation,
|
||||
|
@ -84,6 +85,7 @@ export const languages = [
|
|||
{ code: 'gl', name: 'Galego' },
|
||||
{ code: 'hu', name: 'Magyar Nyelv' },
|
||||
{ code: 'ka', name: 'ქართული ენა' },
|
||||
{ code: 'ko', name: '한국어/韓國語' },
|
||||
{ code: 'km', name: 'ភាសាខ្មែរ' },
|
||||
{ code: 'hi', name: 'मानक हिन्दी' },
|
||||
{ code: 'fa', name: 'فارسی' },
|
||||
|
@ -411,6 +413,8 @@ export function getMomentLanguage(): string {
|
|||
lang = 'ga';
|
||||
} else if (lang.startsWith('sr')) {
|
||||
lang = 'sr';
|
||||
} else if (lang.startsWith('ko')) {
|
||||
lang = 'ko';
|
||||
} else {
|
||||
lang = 'en';
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
{}
|
Loading…
Reference in New Issue