Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add korean translation #57

Merged
merged 1 commit into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import es from './es'
import fr from './fr'
import hi from './hi'
import ja from './ja'
import ko from './ko'
import pt from './pt'
import ru from './ru'
import type { Localization } from './types'
Expand All @@ -26,6 +27,7 @@ const locales: Record<string, Localization> = {
fr,
hi,
ja,
ko,
}

class Locale {
Expand Down
61 changes: 61 additions & 0 deletions core/src/locale/ko.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import type { Localization } from './types'

const locale: Localization = {
'*': {
prefix: '매',
suffix: '',
text: '알 수 없음',
'*': {
value: { text: '{{value.text}}' },
range: { text: '{{start.text}}-{{end.text}}' },
everyX: { text: '{{every.value}}마다' },
},
month: {
'*': { prefix: '에' },
empty: { prefix: '의', text: '매월' },
value: { text: '{{value.alt}}' },
range: { text: '{{start.alt}}-{{end.alt}}' },
},
day: {
'*': { prefix: '의' },
empty: { prefix: '에', text: '매일' },
everyX: { prefix: '', text: '{{every.value}}일마다' },
noSpecific: { prefix: '에', text: '특정한 날 없음' },
},
dayOfWeek: {
'*': { prefix: '의' },
empty: { prefix: '에', text: '매주' },
value: { text: '{{value.alt}}' },
range: { text: '{{start.alt}}-{{end.alt}}' },
noSpecific: { prefix: '과', text: '특정한 요일 없음' },
},
hour: {
'*': { prefix: '의' },
empty: { prefix: '에', text: '매시' },
everyX: { prefix: '', text: '{{every.value}}시간마다' },
},
minute: {
'*': { prefix: ':' },
empty: { text: '매분' },
everyX: { prefix: '', text: '{{every.value}}분마다' },
},
second: {
'*': { prefix: ':' },
empty: { text: '매초' },
everyX: { prefix: '', text: '{{every.value}}초마다' },
},
},
minute: { text: '분' },
hour: { text: '시', minute: { '*': { prefix: '에', suffix: '분' }, empty: { text: '매' } } },
day: { prefix: '매', text: '일' },
week: { text: '주' },
month: { prefix: '매', text: '월' },
year: { prefix: '매', text: '년' },

//quartz format
'q-second': { text: '초' },
'q-minute': { text: '분', second: { '*': { prefix: '와' } } },
'q-hour': { text: '시', minute: { '*': { prefix: '와' } }, second: { '*': { prefix: '와' } } },
}

export default locale
Loading