Skip to content

Commit

Permalink
Merge pull request #880 from zearthur99/master
Browse files Browse the repository at this point in the history
Adds translation to brazillian portuguese
  • Loading branch information
oznu committed Oct 10, 2020
2 parents 41129db + ded2075 commit 187819f
Show file tree
Hide file tree
Showing 4 changed files with 359 additions and 4 deletions.
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: :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:

# Homebridge Config UI X

Expand Down
16 changes: 14 additions & 2 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,19 @@
]
},
{
"title": "Portuguese (pl)",
"title": "Portuguese (pt-BR)",
"enum": [
"pt-BR"
]
},
{
"title": "Portuguese (pt)",
"enum": [
"pt"
]
},
{
"title": "Polish (pl)",
"enum": [
"pl"
]
Expand Down Expand Up @@ -549,4 +561,4 @@
]
}
]
}
}
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', 'id'];
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'];

console.log('Browser Culture Lang:', translate.getBrowserCultureLang());
console.log('Browser Lang:', translate.getBrowserLang());
Expand Down
Loading

0 comments on commit 187819f

Please sign in to comment.