Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Catalan translation #37

Merged
merged 1 commit into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
}
}