Skip to content

Commit b4d12c9

Browse files
authored
Merge pull request #57 from mulder3062/add-korean-translation
feat: add korean translation
2 parents 00512be + 658ebf0 commit b4d12c9

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

core/src/locale/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import es from './es'
99
import fr from './fr'
1010
import hi from './hi'
1111
import ja from './ja'
12+
import ko from './ko'
1213
import pt from './pt'
1314
import ru from './ru'
1415
import type { Localization } from './types'
@@ -26,6 +27,7 @@ const locales: Record<string, Localization> = {
2627
fr,
2728
hi,
2829
ja,
30+
ko,
2931
}
3032

3133
class Locale {

core/src/locale/ko.ts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import type { Localization } from './types'
2+
3+
const locale: Localization = {
4+
'*': {
5+
prefix: '매',
6+
suffix: '',
7+
text: '알 수 없음',
8+
'*': {
9+
value: { text: '{{value.text}}' },
10+
range: { text: '{{start.text}}-{{end.text}}' },
11+
everyX: { text: '{{every.value}}마다' },
12+
},
13+
month: {
14+
'*': { prefix: '에' },
15+
empty: { prefix: '의', text: '매월' },
16+
value: { text: '{{value.alt}}' },
17+
range: { text: '{{start.alt}}-{{end.alt}}' },
18+
},
19+
day: {
20+
'*': { prefix: '의' },
21+
empty: { prefix: '에', text: '매일' },
22+
everyX: { prefix: '', text: '{{every.value}}일마다' },
23+
noSpecific: { prefix: '에', text: '특정한 날 없음' },
24+
},
25+
dayOfWeek: {
26+
'*': { prefix: '의' },
27+
empty: { prefix: '에', text: '매주' },
28+
value: { text: '{{value.alt}}' },
29+
range: { text: '{{start.alt}}-{{end.alt}}' },
30+
noSpecific: { prefix: '과', text: '특정한 요일 없음' },
31+
},
32+
hour: {
33+
'*': { prefix: '의' },
34+
empty: { prefix: '에', text: '매시' },
35+
everyX: { prefix: '', text: '{{every.value}}시간마다' },
36+
},
37+
minute: {
38+
'*': { prefix: ':' },
39+
empty: { text: '매분' },
40+
everyX: { prefix: '', text: '{{every.value}}분마다' },
41+
},
42+
second: {
43+
'*': { prefix: ':' },
44+
empty: { text: '매초' },
45+
everyX: { prefix: '', text: '{{every.value}}초마다' },
46+
},
47+
},
48+
minute: { text: '분' },
49+
hour: { text: '시', minute: { '*': { prefix: '에', suffix: '분' }, empty: { text: '매' } } },
50+
day: { prefix: '매', text: '일' },
51+
week: { text: '주' },
52+
month: { prefix: '매', text: '월' },
53+
year: { prefix: '매', text: '년' },
54+
55+
//quartz format
56+
'q-second': { text: '초' },
57+
'q-minute': { text: '분', second: { '*': { prefix: '와' } } },
58+
'q-hour': { text: '시', minute: { '*': { prefix: '와' } }, second: { '*': { prefix: '와' } } },
59+
}
60+
61+
export default locale

0 commit comments

Comments
 (0)