Skip to content

Commit

Permalink
feat: Added Catalan translation (denysdovhan#190)
Browse files Browse the repository at this point in the history
* Added Catalan translation

* Added Catalan translation (fixed)

* Added Catalan translation (verbal tenses fixed)

Co-authored-by: Roger Pons <[email protected]>
  • Loading branch information
fenikso and Roger Pons authored Mar 7, 2021
1 parent 66a5e1e commit 34de65a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ This card supports translations. Please, help to add more translations and impro
- Dansk (Danish)
- 한국어 (Korean)
- Suomi (Finnish)
- Català (Catalan)
- [_Your language?_][add-translation]

## Supported models
Expand Down
4 changes: 3 additions & 1 deletion src/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import * as nb from './translations/nb.json';
import * as da from './translations/da.json';
import * as ko from './translations/ko.json';
import * as fi from './translations/fi.json';
import * as ca from './translations/ca.json';

var languages = {
en,
Expand All @@ -36,7 +37,8 @@ var languages = {
nb,
da,
ko,
fi
fi,
ca
};

const DEFAULT_LANG = 'en';
Expand Down
49 changes: 49 additions & 0 deletions src/translations/ca.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"status": {
"cleaning": "Netejant",
"paused": "En pausa",
"idle": "Inactiu",
"charging": "Carregant",
"returning home": "Tornant a la base",
"docked": "A la base"
},
"source": {
"gentle": "Delicat",
"silent": "Silenciós",
"standard": "Estàndard",
"medium": "Mitjà",
"turbo": "Turbo"
},
"common": {
"name": "Vacuum Card",
"description": "Vacuum card us permet controlar el robot aspirador.",
"start": "Neteja",
"continue": "Continua",
"pause": "Pausa",
"stop": "Atura",
"return_to_base": "Torna a la base",
"locate": "Localitza",
"not_available": "No disponible"
},
"error": {
"missing_entity": "Cal especificar una entitat."
},
"editor": {
"entity": "Entitat (Requerit)",
"map": "Càmera de mapa (Opcional)",
"image": "Imatge (Opcional)",
"compact_view": "Visualització compacta",
"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_status": "Mostrar estat",
"show_status_aria_label_on": "Mostra estat",
"show_status_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 34de65a

Please sign in to comment.