Skip to content

Commit

Permalink
changelog and ko language
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed Nov 28, 2020
1 parent 5fe95fd commit c848f7c
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 8 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,12 @@
"ja"
]
},
{
"title": "Korean (ko)",
"enum": [
"ko"
]
},
{
"title": "Dutch (nl)",
"enum": [
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -135,4 +135,4 @@
"smart home",
"hb-service"
]
}
}
2 changes: 1 addition & 1 deletion ui/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
3 changes: 3 additions & 0 deletions ui/src/app/core/locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -43,6 +44,7 @@ registerLocaleData(localeSl);
registerLocaleData(localePt);
registerLocaleData(localeId);
registerLocaleData(localeCa);
registerLocaleData(localeKo);

export const supportedLocales = {
'en': 'en',
Expand All @@ -67,4 +69,5 @@ export const supportedLocales = {
'pt-BR': 'pt',
'id': 'id',
'ca': 'ca',
'ko': 'ko',
};
File renamed without changes.

0 comments on commit c848f7c

Please sign in to comment.