Skip to content

Commit

Permalink
fix json in GR translation
Browse files Browse the repository at this point in the history
bump version of the card
fix badge in Readme
  • Loading branch information
argaar committed Feb 13, 2024
1 parent b5c7ca8 commit af3b26e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ Thanks to the people listed below, this card is available in the following langu
* German - by [@Andurilll](https://github.com/Andurilll)
* English (default) - by [@argaar](https://github.com/argaar)
* French - by [@GaPhi](https://github.com/GaPhi)
* Greek - by [@tzam](https://github.com/tzamer)
* Hungarian - by [@n0is3r](https://github.com/n0is3r)
* Italian - by [@argaar](https://github.com/argaar)
* Portuguese - by [@FragMenthor](https://github.com/FragMenthor)
* Russian - by [@kai-zer-ru](https://github.com/kai-zer-ru)
* Slovak - by [@misa1515](https://github.com/misa1515)
* Spanish - by [@ale87jan](https://github.com/ale87jan)
* Ukrainian - by [@rkoptev](https://github.com/rkoptev)
* Greek - by [@tzam](https://github.com/tzamer)

[commits-shield]: https://img.shields.io/github/commit-activity/y/argaar/comfortable-environment-card.svg?style=for-the-badge
[commits]: https://github.com/argaar/comfortable-environment-card/commits/master
[license-shield]: https://img.shields.io/github/license/argaar/comfortable-environment-card.svg?style=for-the-badge
[maintenance-shield]: https://img.shields.io/maintenance/yes/2023.svg?style=for-the-badge
[maintenance-shield]: https://img.shields.io/maintenance/yes/2024.svg?style=for-the-badge
[releases-shield]: https://img.shields.io/github/release/argaar/comfortable-environment-card.svg?style=for-the-badge
[releases]: https://github.com/argaar/comfortable-environment-card/releases
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "comfortable-environment-card",
"version": "1.5.7",
"version": "1.5.8",
"description": "Lovelace comfortable-environment-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.5.7'
export const CARD_VERSION = '1.5.8'
1 change: 1 addition & 0 deletions src/localize/languages/gr.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@
"8":"Κατάσταση ιατρικής έκτακτης ανάγκης"
}
}
}
4 changes: 2 additions & 2 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ import * as de from "./languages/de.json";
import * as en from "./languages/en.json";
import * as es from "./languages/es.json";
import * as fr from "./languages/fr.json";
import * as gr from "./languages/gr.json";
import * as hu from "./languages/hu.json";
import * as it from "./languages/it.json";
import * as pt from "./languages/pt.json";
import * as ru from "./languages/ru.json";
import * as sk from "./languages/sk.json";
import * as uk from "./languages/uk.json";
import * as gr from "./languages/gr.json";

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const languages: any = {
de: de,
en: en,
es: es,
fr: fr,
gr: gr,
hu: hu,
it: it,
ru: ru,
sk: sk,
pt: pt,
uk: uk,
gr: gr,
};

export function localize(string: string, search = '', replace = ''): string {
Expand Down

0 comments on commit af3b26e

Please sign in to comment.