-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Robinson <merobi@gmail.com>
- Loading branch information
1 parent
0f857c5
commit 3745a7e
Showing
11 changed files
with
167 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
declare module 'i18next'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
import i18n from 'i18next'; | ||
import { initReactI18next, useTranslation } from 'react-i18next'; | ||
// import Backend from 'i18next-http-backend'; | ||
import LanguageDetector from 'i18next-browser-languagedetector'; | ||
|
||
i18n | ||
// .use(Backend) | ||
// detect user language | ||
// learn more: https://github.com/i18next/i18next-browser-languageDetector | ||
.use(LanguageDetector) | ||
// pass the i18n instance to react-i18next. | ||
.use(initReactI18next) | ||
// init i18next | ||
// for all options read: https://www.i18next.com/overview/configuration-options | ||
.init({ | ||
debug: true, | ||
fallbackLng: 'en', | ||
interpolation: { | ||
escapeValue: false, // not needed for react as it escapes by default | ||
}, | ||
resources: { | ||
en: { | ||
translation: { | ||
// here we will place our translations... | ||
header: { | ||
docs_link: 'API Docs' | ||
}, | ||
jobs: { | ||
latest_tab: 'LATEST RUN', | ||
history_tab: 'RUN HISTORY', | ||
location: 'LOCATION', | ||
empty_title: 'No Run Information Available', | ||
empty_body: 'Try adding some runs for this job.', | ||
runinfo_subhead: 'FACETS', | ||
runs_subhead: 'FACETS' | ||
}, | ||
search: { | ||
search: 'Search', | ||
jobs: 'Jobs', | ||
and: 'and', | ||
datasets: 'Datasets' | ||
}, | ||
lineage: { | ||
empty_title: 'No node selected', | ||
empty_body: 'Try selecting a node through search or the jobs or datasets page.' | ||
} | ||
} | ||
}, | ||
fr: { | ||
translation: { | ||
header: { | ||
docs_link: 'API Docs' | ||
}, | ||
jobs: { | ||
latest_tab: 'DERNIÈRE COURSE', | ||
history_tab: "HISTORIQUE D'EXECUTION", | ||
location: 'EMPLACEMENT', | ||
empty_title: 'Pas de Course les Informations Disponibles', | ||
empty_body: "Essayez d'ajouter quelques exécutions pour ce travail.", | ||
runinfo_subhead: 'FACETTES', | ||
runs_subhead: 'FACETTES', | ||
}, | ||
search: { | ||
search: 'Recherche', | ||
jobs: "d'Emplois", | ||
and: 'et', | ||
datasets: "d'Ensembles de Données" | ||
}, | ||
lineage: { | ||
empty_title: 'Aucun nœud sélectionné', | ||
empty_body: 'Essayez de sélectionner un nœud via la recherche ou la page des travaux ou des ensembles de données.' | ||
} | ||
} | ||
}, | ||
es: { | ||
translation: { | ||
header: { | ||
docs_link: 'API Docs' | ||
}, | ||
jobs: { | ||
latest_tab: 'ÚLTIMA EJECUCIÓN', | ||
history_tab: 'HISTORIAL DE EJECUCIONES', | ||
location: 'UBICACIÓN', | ||
empty_title: 'No hay Información de Ejecución Disponible', | ||
empty_body: 'Intente agregar algunas ejecuciones para este trabajo.', | ||
runinfo_subhead: 'FACETAS', | ||
runs_subhead: 'FACETAS' | ||
}, | ||
search: { | ||
search: 'Buscar', | ||
jobs: 'Trabajos', | ||
and: 'y', | ||
datasets: 'Conjuntos de Datos' | ||
}, | ||
lineage: { | ||
empty_title: 'Ningún nodo seleccionado', | ||
empty_body: 'Intente seleccionar un nodo mediante la búsqueda o la página de trabajos o conjuntos de datos.' | ||
} | ||
} | ||
}, | ||
pl: { | ||
translation: { | ||
header: { | ||
docs_link: 'API Dokumenty' | ||
}, | ||
jobs: { | ||
latest_tab: 'OSTATNI BIEG', | ||
history_tab: 'BIEGAĆ HISTORIA', | ||
location: 'LOKALIZACJA', | ||
empty_title: 'Brak dostępnych informacji o przebiegu', | ||
empty_body: 'Spróbuj dodać kilka przebiegów dla tego zadania.', | ||
runinfo_subhead: 'ASPECTY', | ||
runs_subhead: 'ASPECTY' | ||
}, | ||
search: { | ||
search: 'Wyszukaj Oferty', | ||
jobs: 'Pracy', | ||
and: 'i', | ||
datasets: 'Zestawy Danych' | ||
}, | ||
lineage: { | ||
empty_title: 'Nie wybrano węzła', | ||
empty_body: 'Spróbuj wybrać węzeł za pomocą wyszukiwania lub strony zadań lub zestawów danych.' | ||
} | ||
} | ||
} | ||
|
||
} | ||
}); | ||
|
||
export default i18n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters