Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: argaar/comfortable-environment-card
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.5.8
Choose a base ref
...
head repository: argaar/comfortable-environment-card
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.5.9
Choose a head ref
  • 4 commits
  • 5 files changed
  • 2 contributors

Commits on Feb 15, 2024

  1. Update localize.ts

    Czech json
    ElektronikCZ authored Feb 15, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4e96822 View commit details
  2. added cs.json

    ElektronikCZ authored Feb 15, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    92dd02e View commit details

Commits on Feb 19, 2024

  1. Merge pull request #28 from ElektronikCZ/patch-1

    Czech translation
    argaar authored Feb 19, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ccd2c94 View commit details

Commits on Feb 27, 2024

  1. Added Czech language

    argaar committed Feb 27, 2024
    Copy the full SHA
    1494ff5 View commit details
Showing with 42 additions and 2 deletions.
  1. +1 −0 README.md
  2. +1 −1 package.json
  3. +1 −1 src/const.ts
  4. +37 −0 src/localize/languages/cs.json
  5. +2 −0 src/localize/localize.ts
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -70,6 +70,7 @@ The temperature bar idea was inspired by @madmicio 's ph-meter-temperature card

Thanks to the people listed below, this card is available in the following languages:

* Czech - by [@ElektronikCZ](https://github.com/ElektronikCZ)
* German - by [@Andurilll](https://github.com/Andurilll)
* English (default) - by [@argaar](https://github.com/argaar)
* French - by [@GaPhi](https://github.com/GaPhi)
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.8",
"version": "1.5.9",
"description": "Lovelace comfortable-environment-card",
"keywords": [
"home-assistant",
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.8'
export const CARD_VERSION = '1.5.9'
37 changes: 37 additions & 0 deletions src/localize/languages/cs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"common": {
"version": "Verze",
"description": "Karta zobrazjící informace o indexu nepohody a teploty, na základě teploty a vlhkosti v oblasti",
"invalid_configuration": "Konfigurace karty je neplatná nebo neexistuje, prosím překontrolujte ji!",
"temperature": "Teplota",
"humidity": "Vlhkost",
"hi": "Index teploty",
"di": "Index nepohody"
},
"configurator": {
"room_name": "Název oblasti",
"temp_sensor": "Senzor teploty",
"hum_sensor": "Senzor vlhkosti",
"show_index": "Vyberte, které indexy chcete zobrazit"
},
"states": {
"hi": {
"0": "Dobrý",
"1": "Opatrnost",
"2": "Extrémní opatrnost",
"3": "Nebezpečí",
"4": "Extrémní nebezpečí"
},
"di" : {
"0": "Extrémně nepříjemné",
"1": "Poměrně nepříjemné",
"2": "Relativně příjemné",
"3": "Příjemné",
"4": "Méně než 50% populace se cítí nepříjemně",
"5": "Více než 50% populace se cítí nepříjemně",
"6": "Většina populace se cítí nepříjemně",
"7": "Každý pociťuje silný stres",
"8": "Stav zdravotní nouze"
}
}
}
2 changes: 2 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as cs from "./languages/cs.json";
import * as de from "./languages/de.json";
import * as en from "./languages/en.json";
import * as es from "./languages/es.json";
@@ -12,6 +13,7 @@ import * as uk from "./languages/uk.json";

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const languages: any = {
cs: cs,
de: de,
en: en,
es: es,