Skip to content

Commit

Permalink
test new keys
Browse files Browse the repository at this point in the history
  • Loading branch information
propakov committed Sep 21, 2022
1 parent 24fcc1b commit d99ac32
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/core/localization/TranslationService.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import en from './translations/en/common-messages.json';
// import es from './translations/es/common-messages.json';
// import en from './translations/en/common-messages.json';
import es from './translations/es/common-messages.json';

i18n
.use(LanguageDetector)
Expand All @@ -16,7 +16,7 @@ i18n
},
resources: {
en: {
...en,
...es,
},
},
});
Expand Down
34 changes: 30 additions & 4 deletions src/core/localization/translations/es/common-messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"km": "km",
"m": "m",
"to": "a",

"logout": "XXXXXX",
"save": "Guardar",
"cancel": "Cancelar",
"create": "Crear",

"disasters": "Desastres",
"loading": "Cargando...",
"loading_events": "Cargando eventos",
Expand All @@ -24,7 +23,6 @@
"deselect": "Anular la selección",
"spinner_text": "Recopilación de datos",
"updated": "Actualizado",

"errors": {
"timeout": "Se agotó el tiempo de espera de la solicitud",
"cannot_connect": "No se puede conectar al servidor",
Expand All @@ -33,7 +31,35 @@
"unknown": "Desconocido",
"server_error": "Error del servidor"
},

"categories": {
"overlays": "XXXXXX",
"basemap": "XXXXXX"
},
"groups": {
"layers_in_selected_area": "XXXXXX XXXXXX XXXXXX",
"your_layers": "XXXXXX XXXXXX",
"kontur_analytics": "XXXXXX XXXXXX",
"qa": "XXXXXX",
"osmbasedmap": "XXXXXX XXXXXX",
"other": "XXXXXX",
"elevation": "XXXXXX",
"photo": "XXXXXX",
"map": "XXXXXX"
},
"advanced_analytics_data_list": {
"load_world_data": "XXXXXX",
"numerator": "XXXXXX",
"normalized_by": "XXXXXX",
"sum": "XXXXXX",
"min": "XXXXXX",
"max": "XXXXXX",
"mean": "XXXXXX",
"stddev": "XXXXXX",
"median": "XXXXXX",
"filter_nominator": "XXXXXX",
"filter_denominator": "XXXXXX"
},
"app_header.title": "XXXXXX",
"event_list": {
"title": "Enfoque en los desastres",
"warning_title": "No se puede utilizar el mapa como filtro",
Expand Down

0 comments on commit d99ac32

Please sign in to comment.