Skip to content

Commit

Permalink
feat: Added Catalan translation (denysdovhan#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Roger Pons <[email protected]>
  • Loading branch information
fenikso and Roger Pons authored Mar 11, 2021
1 parent 84af025 commit 894ea35
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ This card supports translations. Please, help to add more translations and impro
- Български (Bulgarian)
- 简体中文 (Simplified Chinese)
- Deutsch (German)
- Català (Catalan)
- [_Your language?_][add-translation]

## Supported models
Expand Down
2 changes: 2 additions & 0 deletions src/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as pl from './translations/pl.json';
import * as bg from './translations/bg.json';
import * as zh from './translations/zh.json';
import * as de from './translations/de.json';
import * as ca from './translations/ca.json';

var languages = {
en,
Expand All @@ -21,6 +22,7 @@ var languages = {
bg,
zh,
de,
ca,
};

const DEFAULT_LANG = 'en';
Expand Down
38 changes: 38 additions & 0 deletions src/translations/ca.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"common": {
"name": "Purifier Card",
"description": "Purifier card us permet controlar el purificador intel·ligent.",
"not_available": "L'entitat no està disponible",
"toggle_power": "Encendre/apagar"
},
"state": {
"on": "Encès",
"off": "Apagat"
},
"speed": {
"Auto": "Auto",
"Silent": "Silenciós",
"Favorite": "Favorit",
"Fan": "Ventilador"
},
"error": {
"missing_entity": "Cal especificar una entitat.",
"xiaomi_miio_level_without_speed": "es requereix la velocitat juntament amb la propietat xiaomi_miio_favorite_level."
},
"editor": {
"entity": "Entitat (Requerit)",
"compact_view": "Visualització comptacta",
"compact_view_aria_label_on": "Activar visualització compacta",
"compact_view_aria_label_off": "Desactivar visualització compacta",
"show_name": "Mostrar nom",
"show_name_aria_label_on": "Mostra nom",
"show_name_aria_label_off": "Amaga nom",
"show_state": "Mostrar estat",
"show_state_aria_label_on": "Mostra estat",
"show_state_aria_label_off": "Amaga estat",
"show_toolbar": "Mostrar barra d'eines",
"show_toolbar_aria_label_on": "Mostra barra d'eines",
"show_toolbar_aria_label_off": "Amaga barra d'eines",
"code_only_note": "Nota: Configuració de les accions i estadístiques només disponible des de l'Editor de Codi."
}
}

0 comments on commit 894ea35

Please sign in to comment.