aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/i18n
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/app/i18n')
-rw-r--r--src/frontend/app/i18n/index.ts26
-rw-r--r--src/frontend/app/i18n/locales/en-GB.json6
-rw-r--r--src/frontend/app/i18n/locales/es-ES.json6
-rw-r--r--src/frontend/app/i18n/locales/gl-ES.json6
4 files changed, 25 insertions, 19 deletions
diff --git a/src/frontend/app/i18n/index.ts b/src/frontend/app/i18n/index.ts
index a7ba6aa..492a9a9 100644
--- a/src/frontend/app/i18n/index.ts
+++ b/src/frontend/app/i18n/index.ts
@@ -1,15 +1,15 @@
-import i18n from 'i18next';
-import { initReactI18next } from 'react-i18next';
-import LanguageDetector from 'i18next-browser-languagedetector';
-import esES from './locales/es-ES.json';
-import glES from './locales/gl-ES.json';
-import enGB from './locales/en-GB.json';
+import i18n from "i18next";
+import { initReactI18next } from "react-i18next";
+import LanguageDetector from "i18next-browser-languagedetector";
+import esES from "./locales/es-ES.json";
+import glES from "./locales/gl-ES.json";
+import enGB from "./locales/en-GB.json";
// Add more languages as needed
const resources = {
- 'es-ES': { translation: esES },
- 'gl-ES': { translation: glES },
- 'en-GB': { translation: enGB },
+ "es-ES": { translation: esES },
+ "gl-ES": { translation: glES },
+ "en-GB": { translation: enGB },
};
i18n
@@ -17,14 +17,14 @@ i18n
.use(initReactI18next)
.init({
resources,
- fallbackLng: 'es-ES',
+ fallbackLng: "es-ES",
interpolation: {
escapeValue: false,
},
- supportedLngs: ['es-ES', 'gl-ES', 'en-GB'],
+ supportedLngs: ["es-ES", "gl-ES", "en-GB"],
detection: {
- order: ['querystring', 'cookie', 'localStorage', 'navigator', 'htmlTag'],
- caches: ['localStorage', 'cookie'],
+ order: ["querystring", "cookie", "localStorage", "navigator", "htmlTag"],
+ caches: ["localStorage", "cookie"],
},
});
diff --git a/src/frontend/app/i18n/locales/en-GB.json b/src/frontend/app/i18n/locales/en-GB.json
index cd0780c..264290b 100644
--- a/src/frontend/app/i18n/locales/en-GB.json
+++ b/src/frontend/app/i18n/locales/en-GB.json
@@ -43,11 +43,13 @@
"arrival": "Arrival",
"distance": "Distance",
"not_available": "Not available",
- "none": "No estimates available"
+ "none": "No estimates available",
+ "next_arrivals": "Next arrivals"
},
"map": {
"popup_title": "Stop",
- "lines": "Lines"
+ "lines": "Lines",
+ "view_all_estimates": "View all estimates"
},
"common": {
"loading": "Loading...",
diff --git a/src/frontend/app/i18n/locales/es-ES.json b/src/frontend/app/i18n/locales/es-ES.json
index 2f2bb86..d7d78ad 100644
--- a/src/frontend/app/i18n/locales/es-ES.json
+++ b/src/frontend/app/i18n/locales/es-ES.json
@@ -43,11 +43,13 @@
"arrival": "Llegada",
"distance": "Distancia",
"not_available": "No disponible",
- "none": "No hay estimaciones disponibles"
+ "none": "No hay estimaciones disponibles",
+ "next_arrivals": "Próximas llegadas"
},
"map": {
"popup_title": "Parada",
- "lines": "Líneas"
+ "lines": "Líneas",
+ "view_all_estimates": "Ver todas las estimaciones"
},
"common": {
"loading": "Cargando...",
diff --git a/src/frontend/app/i18n/locales/gl-ES.json b/src/frontend/app/i18n/locales/gl-ES.json
index d2558e5..3012638 100644
--- a/src/frontend/app/i18n/locales/gl-ES.json
+++ b/src/frontend/app/i18n/locales/gl-ES.json
@@ -43,11 +43,13 @@
"arrival": "Chegada",
"distance": "Distancia",
"not_available": "Non dispoñible",
- "none": "Non hai estimacións dispoñibles"
+ "none": "Non hai estimacións dispoñibles",
+ "next_arrivals": "Próximas chegadas"
},
"map": {
"popup_title": "Parada",
- "lines": "Liñas"
+ "lines": "Liñas",
+ "view_all_estimates": "Ver todas as estimacións"
},
"common": {
"loading": "Cargando...",