Skip to content

Commit

Permalink
merged the new languages and add how to add language
Browse files Browse the repository at this point in the history
  • Loading branch information
t1gr0u committed May 25, 2023
1 parent 6115308 commit 467af7d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,24 @@ The following languages are supported:

| Language | Yaml value | Supported | Translated by |
| --------- | ---------- | --------- | ----------------------------------------------------------------------------------- |
| Czech | `cs` | v1.3.0 | [@MiisaTrAnCe](https://github.com/MiisaTrAnCe) |
| Czech | `cs` | v1.2.1 | [@MiisaTrAnCe](https://github.com/MiisaTrAnCe) |
| Dutch | `nl` | v1.2.0 | [@WoBBeLNL](https://github.com/WoBBeLnl) |
| English | `en` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) |
| French | `fr` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) |
| German | `de` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) |
| Hungarian | `hu` | v1.2.1 | [@erelke](https://github.com/erelke) |
| Italian | `it` | v1.2.0 | [@SiriosDev](https://github.com/SiriosDev) |
| Portuguese| `pt` | v1.2.0 | [@ViPeR5000](https://github.com/viper5000) |
| Swedish | `sv` | v1.2.1 | [@el97](https://github.com/el97) |

#### How to add a language

If you wish to add a language please follow these steps:

* Go into the `src/localize/languages/` folder
* Duplicate the `en.json` and name it as the language that you would like to add by following the [2 characters ISO language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
* Then modify the `localize.ts` file, located in `src/localize/` to include your language file.
* Update the `Readme.md`, found in `src/` to include your language and your Github username in the language table.

## Thanks to

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uv-index-card",
"version": "1.2.0",
"version": "1.2.1",
"description": "Lovelace uv-index-card",
"keywords": [
"home-assistant",
Expand Down
2 changes: 1 addition & 1 deletion src/const.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const CARD_VERSION = '1.2.0';
export const CARD_VERSION = '1.2.1';

0 comments on commit 467af7d

Please sign in to comment.