Skip to content

Commit

Permalink
Add Korean translation (#55)
Browse files Browse the repository at this point in the history
* Update README.md

* Update constants.ts

* Create ko.json

* Update constants.ts

---------

Co-authored-by: Edward Firmo <[email protected]>
Co-authored-by: Thomas Dietrich <[email protected]>
  • Loading branch information
3 people authored Jul 3, 2023
1 parent 4561fd2 commit e980bee
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Supported options for the `language` setting:
- `hu` Hungarian
- `is` Icelandic
- `ja` Japanese
- `ko` Korean
- `it` Italian
- `lt` Lithuanian
- `ms` Malay
Expand Down
12 changes: 12 additions & 0 deletions src/assets/localization/languages/ko.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"azimuth": "방위각",
"dawn": "새벽",
"dusk": "저녁",
"elevation": "태양 고도",
"noon": "태양 정오",
"sunrise": "해돋이",
"sunset": "해넘이",
"errors": {
"SunIntegrationNotFound": "태양 통합구성요소를 찾을 수 없습니다"
}
}
3 changes: 2 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import hu from './assets/localization/languages/hu.json'
import is from './assets/localization/languages/is.json'
import it from './assets/localization/languages/it.json'
import ja from './assets/localization/languages/ja.json'
import ko from './assets/localization/languages/ko.json'
import lt from './assets/localization/languages/lt.json'
import ms from './assets/localization/languages/ms.json'
import nb from './assets/localization/languages/nb.json'
Expand Down Expand Up @@ -88,7 +89,7 @@ export class Constants {
}

static readonly LOCALIZATION_LANGUAGES: Record<string, THorizonCardI18NKeys> = {
bg, ca, cs, da, de, en, es, et, fi, fr, he, hr, hu, is, it, ja, lt, ms, nb, nl, nn, pl, 'pt-BR': ptBR, ro, ru, sk, sl, sv, tr, uk, 'zh-Hans': zh_Hans, 'zh-Hant': zh_Hant
bg, ca, cs, da, de, en, es, et, fi, fr, he, hr, hu, is, it, ja, ko, lt, ms, nb, nl, nn, pl, 'pt-BR': ptBR, ro, ru, sk, sl, sv, tr, uk, 'zh-Hans': zh_Hans, 'zh-Hant': zh_Hant
}

static readonly FALLBACK_LOCALIZATION = en
Expand Down

0 comments on commit e980bee

Please sign in to comment.