mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Adding korean language template.
This commit is contained in:
parent
2d5a50e80f
commit
3f0b3d7361
2
ui/src/i18next.ts
vendored
2
ui/src/i18next.ts
vendored
@ -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 {
|
||||
|
4
ui/src/utils.ts
vendored
4
ui/src/utils.ts
vendored
@ -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';
|
||||
}
|
||||
|
1
ui/translations/ko.json
vendored
Normal file
1
ui/translations/ko.json
vendored
Normal file
@ -0,0 +1 @@
|
||||
{}
|
Loading…
Reference in New Issue
Block a user