diff --git a/CHANGELOG.md b/CHANGELOG.md index 12a5609bc..a3a208769 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,17 @@ All notable changes to this project will be documented in this file. This projec ## 4.34.1 (2020-11-26) +### Notable Changes + +* **i18n:** Korean (ko) language added by [@thankee](https://github.com/thankee) ([#976](https://github.com/oznu/homebridge-config-ui-x/pull/976)) + * The Homebridge UI is now available in 23 different languages! + ### Bug Fixes * **Plugins:** (BETA) [Custom plugin user interfaces](https://github.com/homebridge/plugin-ui-utils) now work correctly in older browsers that do not support the `EventTarget` constructor * **Plugins:** Ensure `@eaDir` folders are removed from the `/homebridge/node_modules` folder when running with Docker on Synology DSM ([#970](https://github.com/oznu/homebridge-config-ui-x/issues/970)) * **Plugins:** Attempt to automatically clear the npm cache if a UI update fails ([#923](https://github.com/oznu/homebridge-config-ui-x/issues/923)) -* **System:** Lock the axios dependency to 0.19.2 ([#969](https://github.com/oznu/homebridge-config-ui-x/issues/969)) +* **System:** Lockdown the systeminformation dependency version ([#969](https://github.com/oznu/homebridge-config-ui-x/issues/969)) ## 4.34.0 (2020-11-20) diff --git a/README.md b/README.md index 9ab75b22d..ad2ecddb8 100755 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Discord](https://img.shields.io/discord/432663330281226270?color=728ED5&logo=discord&label=discord)](https://discord.gg/C87Pvq3) [![Donate](https://badgen.net/badge/donate/paypal/yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEW8TFQCU2MSJ&source=url) -Supported Languages: :gb: :de: :fr: :poland: :czech_republic: :ru: :cn: :hungary: :jp: :es: :netherlands: :tr: :it: :bulgaria: :sweden: :norway: :slovenia: :brazil: :portugal: :indonesia: +Supported Languages: :gb: :de: :fr: :poland: :czech_republic: :ru: :cn: :hungary: :jp: :es: :netherlands: :tr: :it: :bulgaria: :sweden: :norway: :slovenia: :brazil: :portugal: :indonesia: :kr: # Homebridge Config UI X diff --git a/config.schema.json b/config.schema.json index b4cee1abe..99cfd69dd 100644 --- a/config.schema.json +++ b/config.schema.json @@ -322,6 +322,12 @@ "ja" ] }, + { + "title": "Korean (ko)", + "enum": [ + "ko" + ] + }, { "title": "Dutch (nl)", "enum": [ diff --git a/package-lock.json b/package-lock.json index 347c427f8..5a449c428 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11585,9 +11585,9 @@ "dev": true }, "systeminformation": { - "version": "4.30.5", - "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-4.30.5.tgz", - "integrity": "sha512-aYWs8yttl8ePpr6VOQ/Ak8cznuc9L/NQODVhbOKhInX73ZMLvV2BS86Mzr7LLfmUteVFR36CTDNQgiJgRqq+SQ==" + "version": "4.30.6", + "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-4.30.6.tgz", + "integrity": "sha512-NV7zo9NU7fWSuiCORZmMLe90cFrrTS6jfalrQ0/5B7JGQ2ei15c2gmfICBwWdmviyv/FXAFVReySxOtDDkppqw==" }, "table-layout": { "version": "1.0.1", diff --git a/package.json b/package.json index e30ca888f..36dc42cb8 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "reflect-metadata": "^0.1.12", "rxjs": "^6.6.3", "semver": "^7.3.2", - "systeminformation": "^4.27.10", + "systeminformation": "4.30.6", "tail": "^2.0.4", "tar": "^6.0.5", "tcp-port-used": "^1.0.1", @@ -135,4 +135,4 @@ "smart home", "hb-service" ] -} +} \ No newline at end of file diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts index 09ff72292..1987fb2df 100644 --- a/ui/src/app/app.component.ts +++ b/ui/src/app/app.component.ts @@ -15,7 +15,7 @@ export class AppComponent { private $auth: AuthService, ) { // this array needs to be updated each time a new translation is added - const languages = ['en', 'de', 'fr', 'pl', 'cs', 'ru', 'zh-CN', 'zh-TW', 'hu', 'ja', 'es', 'nl', 'tr', 'it', 'bg', 'sv', 'no', 'sl', 'pt-BR', 'pt', 'id', 'ca']; + const languages = ['en', 'de', 'fr', 'pl', 'cs', 'ru', 'zh-CN', 'zh-TW', 'hu', 'ja', 'es', 'nl', 'tr', 'it', 'bg', 'sv', 'no', 'sl', 'pt-BR', 'pt', 'id', 'ca', 'ko']; console.log('Browser Culture Lang:', translate.getBrowserCultureLang()); console.log('Browser Lang:', translate.getBrowserLang()); diff --git a/ui/src/app/core/locales.ts b/ui/src/app/core/locales.ts index b564107f7..3259adf93 100644 --- a/ui/src/app/core/locales.ts +++ b/ui/src/app/core/locales.ts @@ -21,6 +21,7 @@ import localeSl from '@angular/common/locales/sl'; import localePt from '@angular/common/locales/pt'; import localeId from '@angular/common/locales/id'; import localeCa from '@angular/common/locales/ca'; +import localeKo from '@angular/common/locales/ko'; registerLocaleData(localeEn); registerLocaleData(localeDe); @@ -43,6 +44,7 @@ registerLocaleData(localeSl); registerLocaleData(localePt); registerLocaleData(localeId); registerLocaleData(localeCa); +registerLocaleData(localeKo); export const supportedLocales = { 'en': 'en', @@ -67,4 +69,5 @@ export const supportedLocales = { 'pt-BR': 'pt', 'id': 'id', 'ca': 'ca', + 'ko': 'ko', }; diff --git a/ui/src/i18n/ko b/ui/src/i18n/ko.json similarity index 100% rename from ui/src/i18n/ko rename to ui/src/i18n/ko.json