Updating i18next documentation.
This commit is contained in:
1 parent
0c8cd3fbe9
commit
4a4d7a2171
14 files changed
+171
-74
No files matched your search
@@ -3,6 +3,6 @@ import { debugMode } from './config';
|
||||
export default (message, level = 'log') => {
|
||||
if (debugMode) {
|
||||
// eslint-disable-next-line
|
||||
console[level](message);
|
||||
console[level]('@ohif/i18n: ', message);
|
||||
}
|
||||
};
|
||||
@@ -69,8 +69,8 @@ function initI18n(detection = detectionOptions) {
|
||||
escapeValue: false,
|
||||
},
|
||||
detection,
|
||||
fallbackNS: ['common'],
|
||||
defaultNS: 'common',
|
||||
fallbackNS: ['Common'],
|
||||
defaultNS: 'Common',
|
||||
react: {
|
||||
wait: true,
|
||||
},
|
||||
@@ -81,7 +81,7 @@ function initI18n(detection = detectionOptions) {
|
||||
});
|
||||
}
|
||||
|
||||
customDebug(`@ohif/i18n version ${pkg.version} loaded.`, 'info');
|
||||
customDebug(`version ${pkg.version} loaded.`, 'info');
|
||||
|
||||
initI18n();
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"Themes": "Themes",
|
||||
"Previous": "Previous",
|
||||
"Next": "Next",
|
||||
"Play": "Play",
|
||||
"Stop": "Stop",
|
||||
"Layout": "Layout",
|
||||
"More": "More",
|
||||
"Previous": "$t(Common:Previous)",
|
||||
"Next": "$t(Common:Next)",
|
||||
"Play": "$t(Common:Play)",
|
||||
"Stop": "$t(Common:Stop)",
|
||||
"Layout": "$t(Common:Layout)",
|
||||
"More": "$t(Common:More)",
|
||||
"Crosshairs": "Crosshairs",
|
||||
"Magnify": "Magnify",
|
||||
"ROI Window": "ROI Window",
|
||||
@@ -31,9 +31,15 @@
|
||||
"EllipticalRoi": "EllipticalRoi",
|
||||
"CircleRoi": "CircleRoi",
|
||||
"RectangleRoi": "RectangleRoi",
|
||||
"Reset": "Reset",
|
||||
"Reset": "$t(Common:Reset)",
|
||||
"Reset 2": "$t(Common:Reset) 2",
|
||||
"CINE": "CINE",
|
||||
"Acquired": "Acquired",
|
||||
"Sagittal": "Sagittal",
|
||||
"Axial": "Axial"
|
||||
"Axial": "Axial",
|
||||
"Manual": "Manual",
|
||||
"Manual 2": "Manual 2",
|
||||
"Save": "Save",
|
||||
"Reset to Defaults": "$t(Common:Reset) to Defaults",
|
||||
"Cancel": "Cancel"
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"Reset": "Reset",
|
||||
"Previous": "Previous",
|
||||
"Next": "Next",
|
||||
"Play": "Play",
|
||||
"Stop": "Stop",
|
||||
"Layout": "Layout",
|
||||
"More": "More",
|
||||
"Image": "Image"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Criteria nonconformities": "Criteria nonconformities",
|
||||
"Relabel": "Relabel",
|
||||
"Description": "Description",
|
||||
"Delete": "Delete",
|
||||
"Targets": "Targets",
|
||||
"NonTargets": "NonTargets",
|
||||
"MAX": "MAX"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"User Preferences": "User Preferences",
|
||||
"Save": "$t(Buttons:Save)",
|
||||
"Reset to Defaults": "$t(Buttons:Reset to Defaults)",
|
||||
"Cancel": "$t(Buttons:Cancel)"
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"Welcome to React": "Welcome to React and react-i18next"
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"Themes": "Temas",
|
||||
"Previous": "Anterior",
|
||||
"Next": "Próximo",
|
||||
"Play": "Play",
|
||||
"Stop": "Stop",
|
||||
"Layout": "Esquema",
|
||||
"More": "Más",
|
||||
"Previous": "$t(Common:Previous)",
|
||||
"Next": "$t(Common:Next)",
|
||||
"Play": "$t(Common:Play)",
|
||||
"Stop": "$t(Common:Stop)",
|
||||
"Layout": "$t(Common:Layout)",
|
||||
"More": "$t(Common:More)",
|
||||
"Crosshairs": "Cruces",
|
||||
"Magnify": "Lupa",
|
||||
"ROI Window": "Ventana ROI",
|
||||
@@ -32,8 +32,14 @@
|
||||
"CircleRoi": "CircleRoi",
|
||||
"RectangleRoi": "RectangleRoi",
|
||||
"Reset": "Reiniciar",
|
||||
"Reset 2": "Reiniciar 2",
|
||||
"CINE": "CINE",
|
||||
"Acquired": "Acquired",
|
||||
"Sagittal": "Sagittal",
|
||||
"Axial": "Axial"
|
||||
"Axial": "Axial",
|
||||
"Manual": "Manual",
|
||||
"Manual 2": "Manual 2",
|
||||
"Save": "Guardar",
|
||||
"Reset to Defaults": "$t(Common:reset) por defectos",
|
||||
"Cancel": "Cancelar"
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"fps": "fps",
|
||||
"Skip to first image": "Avanza para la primera imagen",
|
||||
"Previous image": "Imagen anterior",
|
||||
"Play / Stop": "Play / Stop",
|
||||
"Next image": "Próximo image",
|
||||
"Skip to last image": "Pular para la ultima imagen"
|
||||
"Skip to first image": "Avanza para la primera $t(Common:Image)",
|
||||
"Previous image": "$t(Common:Image) $t(Common:Previous)",
|
||||
"Play / Stop": "$t(Common:Play) / $t(Common:Stop)",
|
||||
"Next image": "$t(Common:Play) $t(Common:Image)",
|
||||
"Skip to last image": "Pular para la ultima $t(Common:Image)"
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"reset": "Reiniciar",
|
||||
"Previous": "Anterior",
|
||||
"Next": "Próximo",
|
||||
"Play": "Play",
|
||||
"Stop": "Stop",
|
||||
"Layout": "Esquema",
|
||||
"More": "Más",
|
||||
"Image": "Imagen"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"Criteria nonconformities": "Criterios de no conformidades",
|
||||
"Relabel": "Reetiquetar",
|
||||
"Description": "Descripción",
|
||||
"Delete": "Borrar",
|
||||
"Targets": "Objetivos",
|
||||
"NonTargets": "NonObjetivos",
|
||||
"MAX": "máximo",
|
||||
"Chest Wall Posterior": "Pared pectoral posterior",
|
||||
"Bone Extremity": "Extremidad ósea"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"User Preferences": "Preferencias de usuario",
|
||||
"Save": "$t(Buttons:Save)",
|
||||
"Reset to Defaults": "$t(Buttons:Reset to Defaults)",
|
||||
"Cancel": "$t(Buttons:Cancel)"
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"Welcome to React": "Bienvenido a React"
|
||||
}
|
||||
Reference in new issue
Block a user