Skip to content

Commit 25091b4

Browse files
authored
feat: add Korean locale (ko-KR) (#441)
* feat: add Korean locale (ko-KR)
1 parent fbc9df5 commit 25091b4

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* Multiple Select ko-KR translation
3+
* Author: Zhixin Wen<wenzhixin2010@gmail.com>
4+
*/
5+
6+
import type { MultipleSelectInstance } from '../MultipleSelectInstance.js';
7+
import type { MultipleSelectLocale, MultipleSelectLocales } from '../models/locale.interface.js';
8+
9+
const ms =
10+
typeof window !== 'undefined' && window.multipleSelect !== undefined
11+
? window.multipleSelect
12+
: ({ locales: {} as MultipleSelectLocales } as Partial<MultipleSelectInstance>);
13+
14+
export const Japanese = {
15+
formatSelectAll() {
16+
return '[전체선택]';
17+
},
18+
formatAllSelected() {
19+
return '전체 선택됨';
20+
},
21+
formatCountSelected(count, total) {
22+
return `${count}/${total} 선택됨`;
23+
},
24+
formatNoMatchesFound() {
25+
return '검색 결과가 없습니다.';
26+
},
27+
formatOkButton() {
28+
return '닫다';
29+
},
30+
formatLazyLoading() {
31+
return '로딩 중...';
32+
},
33+
} as MultipleSelectLocale;
34+
35+
(ms.locales as MultipleSelectLocales)['ko-KR'] = Japanese;
36+
37+
export default ms.locales;

packages/multiple-select-vanilla/src/models/locale.interface.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type LocaleKey =
1010
| 'id-ID'
1111
| 'it-IT'
1212
| 'ja-JP'
13+
| 'ko-KR'
1314
| 'pt-BR'
1415
| 'ru-RU'
1516
| 'vi-VN'

0 commit comments

Comments
 (0)