Merge branch 'master' of https://github.com/OHIF/Viewers into feature/i18n-basics

# Conflicts:
#	extensions/ohif-vtk-extension/package.json
#	extensions/ohif-vtk-extension/rollup.config.js
#	extensions/ohif-vtk-extension/yarn.lock
#	package.json
#	src/App.js
#	src/components/Header/Header.js
#	yarn.lock
This commit is contained in:
romulo bordezani committed 2019-06-07 17:55:53 -03:00
commit 0753e9ec3c
47 files changed
+740 -6555

No files matched your search

+6 -8
View File
@@ -1,12 +1,10 @@
import i18n from 'i18next';
import {
initReactI18next,
withTranslation,
I18nextProvider,
} from 'react-i18next';
import { initReactI18next } from 'react-i18next';
const currentLanguage = process.env.APP_LANG || 'en-US';
const debugMode = process.env.I18N_DEBUG || false;
const currentLanguage = process.env.REACT_APP_LANG || 'en-US';
const debugMode = !!(
process.env.NODE_ENV !== 'production' && process.env.REACT_APP_I18N_DEBUG
);
function getDefaultLanguage() {
const mainLanguage = currentLanguage.match(/(.*.)(-)/);
@@ -90,5 +88,5 @@ i18n
translate = t;
});
export { translate as t, withTranslation, I18nextProvider, addLocales };
export { translate as t, addLocales };
export default i18n;
@@ -1,8 +1,8 @@
{
"preferences": "Preferences",
"options": "Options",
"about": "About",
"back_to_viewer": "Back to Viewer",
"study_list": "Study list",
"research_use": "INVESTIGATIONAL USE ONLY"
"INVESTIGATIONAL USE ONLY": "Preferences",
"Options": "Options",
"About": "About",
"Preferences": "Preferences",
"Study list": "Study list",
"Back to Viewer": "Back to Viewer"
}
@@ -1,3 +1,3 @@
{
"research_use": "INVESTIGATIONAL PURPOSES ONLY"
"About": "Info"
}
@@ -1,4 +1,3 @@
{
"options": "Options",
"about": "About"
"About": "About"
}
@@ -1,3 +1,3 @@
{
"research_use": "SOLO USO DE DESAROLLO"
"INVESTIGATIONAL USE ONLY": "SOLO USO DE DESAROLLO"
}
@@ -1,7 +1,8 @@
{
"research_use": "SOLO USO DE INVESTIGACIÓN",
"options": "Opciones",
"about": "Sobre",
"preferences": "Preferencias",
"study_list": "Lista de estudio"
"INVESTIGATIONAL USE ONLY": "SOLO USO DE INVESTIGACIÓN",
"Options": "Opciones",
"About": "Sobre",
"Preferences": "Preferencias",
"Study list": "Lista de estudio",
"Back to Viewer": "Back to Viewer"
}
@@ -1,3 +1,3 @@
{
"Opciones": "Elecciones"
"INVESTIGATIONAL USE ONLY": "SOLO USO DE INVESTIGACIÓN"
}