From 143b09d888cbe6b8fb2f8477533dadaf9dbaaada Mon Sep 17 00:00:00 2001 From: haveyaseen Date: Fri, 1 May 2020 22:16:09 +0200 Subject: [PATCH 1/3] add template Spanish language file and enable it --- assets/locales/es.json | 84 ++++++++++++++++++++++++++++++++++++++++++ i18n.ts | 3 +- 2 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 assets/locales/es.json diff --git a/assets/locales/es.json b/assets/locales/es.json new file mode 100644 index 0000000..32c96f7 --- /dev/null +++ b/assets/locales/es.json @@ -0,0 +1,84 @@ +{ + "translation": { + "global": { + "cancel": "cancel", + "ok": "ok" + }, + "onboarding": { + "motto": "track infections, not people.", + "welcomeMessage": "protect yourself and\nthe people surrounding you\n\nito doesn't track any personal\nor location data\n- \nwe just need to know\nabout your health status", + "tutorial": "How does this work?" + }, + "alphaPositiveResult": { + "testingPurposes": "For testing purposes you can simulate a positive test result. After pressing the button, your phone's TCNs will be marked as positive and uploaded to the server.\n\nEvery ito user now at risk of an infection will be notified.", + "buttonTitleReleaseResult": "Release positive test result" + }, + "onboardingHow": { + "bluetooth": "we use your phone's bluetooth\nto let your phone see every\nother ito user around you", + "smartphone": "your phone saves which other\nphones you encountered. this\ndata is just on your phone", + "bell": "if someone you encountered\nbefore got infected, you get a\nnotification with information\non what to do", + "shield2": "if you got infected and tested\npositive you can let everybody\nyou encountered lately know", + "buttonTitleGetStarted": "Get started" + }, + "alphaWarning": { + "demoPurpose": "This version is for demonstration purpose only.", + "notFullyImplemented": "Not all features are implemented yet nor is everything audited.", + "review": "Please review the app, have a look at the code and report issues, bugs or general feedback at", + "start": "ok, let´s start" + }, + "confimationCode": { + "enterCode": "Please scan the QR Code you got with your test or enter the result ID to verify your positive test result.", + "buttonTitleSubmit": "Test verification code entered" + }, + "dataUpload": { + "thanks": "Thanks for sharing your\nverified test result.\n\nGet well soon!" + }, + "homeTour": { + "circle": "This circle shows you how many ito users you just encountered. Don't worry, it's just an indicator to see if you are in the middle of a lot of ito users or not.", + "report": "If you think you got infected please report with this button to get more information on what to do next. This also helps us inform other ito users about their possible risk.", + "pause": "The pause button lets you pause the tracing. For example, if you are wearing medical safety gear or if you are in another situation where you want to pause the app.", + "next": "next", + "done": "done", + "buttonTitleInfected": "I think I'm infected" + }, + "home": { + "lastIdFetch": "Last ID fetch", + "today": "today", + "never": "never", + "alertContactDiscovered": "We just discovered you have been in contact with a COVID-19 case.\nDon't panic!", + "whatNext": "What to do next?", + "contacts": "contacts", + "buttonTitleInfected": "I think I'm infected", + "popup_info": { + "text": "You perceive COVID-19 symptoms or have a positive test result?", + "button": "Take next steps" + } + }, + "endangerment": { + "info": "Tell us if you have symptoms or if you\nhave a positive test result", + "symptomsTitle": "I have typical symptoms", + "symptomsText": "Don't worry!\nWe will help you figure out what to do next.", + "positiveResultTitle": "I have a positive result", + "positiveResultText": "If you got a positive result from your doctor or authorities please\nlet us know to help everybody else stay healthy." + }, + "symptomInfo": { + "selfTestUrl": "https://www.who.int/news-room/q-a-detail/q-a-coronaviruses", + "explanation": "Please check if your symptoms and situation are similar to a COVID-19 infection.\n\nTo do a self-assessed check first, please head over to your country's designated app:", + "buttonTitleOpenDesignatedApp": "Open designated app", + "buttonTitleNotInfected": "Looks like I'm not infected", + "buttonTitlePositiveTest": "I have a positive test result" + }, + "positiveResult": { + "instruction": "Please scan the QR Code you got with your test or enter the result ID to verfiy your positive test result.", + "textPlaceholderEnterCode": "Enter verification code", + "cameraMessage": "Please enable camera", + "buttonTitleOk": "Upload data", + "camPermissionTitle": "Permission to use camera", + "camPermissionText": "We need your permission to use your camera" + }, + "uploadData": { + "info": "uploading test verification...\nthis might take a while", + "buttonTitleCancel": "cancel upload" + } + } +} diff --git a/i18n.ts b/i18n.ts index b70d4f5..46346ab 100644 --- a/i18n.ts +++ b/i18n.ts @@ -4,6 +4,7 @@ import en from './assets/locales/en'; import nl from './assets/locales/nl'; import de from './assets/locales/de'; import bn from './assets/locales/bn'; +import es from './assets/locales/es'; import {NativeModules} from 'react-native'; @@ -29,7 +30,7 @@ function getSystemLocale(): string { return locale; } -const resources = {en, nl, de, bn}; +const resources = {en, nl, de, bn, es}; function getLangPrefix(lng: string): string { let prefix = 'en'; From 0c29c172c15f3468c6e01f29d2695c440376bd8f Mon Sep 17 00:00:00 2001 From: Esteban Barco <62446578+EstebanBarco@users.noreply.github.com> Date: Fri, 8 May 2020 20:27:15 +0200 Subject: [PATCH 2/3] Update es.json --- assets/locales/es.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/assets/locales/es.json b/assets/locales/es.json index 32c96f7..362fe22 100644 --- a/assets/locales/es.json +++ b/assets/locales/es.json @@ -1,24 +1,24 @@ { "translation": { "global": { - "cancel": "cancel", + "cancel": "cancelar", "ok": "ok" }, "onboarding": { - "motto": "track infections, not people.", - "welcomeMessage": "protect yourself and\nthe people surrounding you\n\nito doesn't track any personal\nor location data\n- \nwe just need to know\nabout your health status", - "tutorial": "How does this work?" + "motto": "rastrea infecciones, no personas.", + "welcomeMessage": "protegete a ti mismo y a\nlas personas a tu alrededor\n\nito no rastrea datos personales\no datos de ubicación\n- \nsolo tenemos que saber\nsobre tu estado de salud", + "tutorial": "Cómo funciona?" }, "alphaPositiveResult": { - "testingPurposes": "For testing purposes you can simulate a positive test result. After pressing the button, your phone's TCNs will be marked as positive and uploaded to the server.\n\nEvery ito user now at risk of an infection will be notified.", - "buttonTitleReleaseResult": "Release positive test result" + "testingPurposes": "Por fines de prueba usted puede simular un resultado de examen positivo. Despues de presionar el boton, el TCN de su ceular será marcado como positivo y subido al servidor.\n\nCada usuario de ito ahora en riesgo de infección será notificado.", + "buttonTitleReleaseResult": "Publicar resultados de examen positivo" }, "onboardingHow": { - "bluetooth": "we use your phone's bluetooth\nto let your phone see every\nother ito user around you", - "smartphone": "your phone saves which other\nphones you encountered. this\ndata is just on your phone", - "bell": "if someone you encountered\nbefore got infected, you get a\nnotification with information\non what to do", - "shield2": "if you got infected and tested\npositive you can let everybody\nyou encountered lately know", - "buttonTitleGetStarted": "Get started" + "bluetooth": "usamos el Bluetooth de su celular\npara que pueda reconocer\notro usuarios de ito cerca de usted", + "smartphone": "su celular guarda otros\ndispositivos que usted haya encontrado. Estos\ndatos se quedan solo en su dispositivo", + "bell": "si alguien con el que usted se haya encontrado\npreviamente contrajo una infección, usted recibirá una\nnotificación con información\nsobre que hacer", + "shield2": "si usted contrajo una infección y resultó\n positivo, usted puede hacerle saber a todos\n con los que se ha encontrado ultimamente", + "buttonTitleGetStarted": "Comenzar" }, "alphaWarning": { "demoPurpose": "This version is for demonstration purpose only.", From 1a2851c2b2a011371a2150276c6a96e7dfd594f1 Mon Sep 17 00:00:00 2001 From: Esteban Barco <62446578+EstebanBarco@users.noreply.github.com> Date: Fri, 15 May 2020 16:02:37 +0200 Subject: [PATCH 3/3] Update es.json --- assets/locales/es.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/assets/locales/es.json b/assets/locales/es.json index 362fe22..ee4b1b4 100644 --- a/assets/locales/es.json +++ b/assets/locales/es.json @@ -21,25 +21,25 @@ "buttonTitleGetStarted": "Comenzar" }, "alphaWarning": { - "demoPurpose": "This version is for demonstration purpose only.", - "notFullyImplemented": "Not all features are implemented yet nor is everything audited.", - "review": "Please review the app, have a look at the code and report issues, bugs or general feedback at", - "start": "ok, let´s start" + "demoPurpose": "Esta versión solo tiene fines de demonstración.", + "notFullyImplemented": "No todas las características han sido implementadas ni auditadas.", + "review": "Por favor revise esta app, analise el codigo y reporte problemas, fallas o retroalimentación a", + "start": "ok, comenzar" }, "confimationCode": { - "enterCode": "Please scan the QR Code you got with your test or enter the result ID to verify your positive test result.", - "buttonTitleSubmit": "Test verification code entered" + "enterCode": "Por favor escanee el codigo QR que usted recibió con el examen o ingrese el ID del resultado para verificar su resultado de examen positivo.", + "buttonTitleSubmit": "Codigo de verificación de examen ingresado" }, "dataUpload": { - "thanks": "Thanks for sharing your\nverified test result.\n\nGet well soon!" + "thanks": "Gracias por compartir su\nresultado de examen verificado.\n\nQue se mejore pronto!" }, "homeTour": { - "circle": "This circle shows you how many ito users you just encountered. Don't worry, it's just an indicator to see if you are in the middle of a lot of ito users or not.", - "report": "If you think you got infected please report with this button to get more information on what to do next. This also helps us inform other ito users about their possible risk.", - "pause": "The pause button lets you pause the tracing. For example, if you are wearing medical safety gear or if you are in another situation where you want to pause the app.", - "next": "next", - "done": "done", - "buttonTitleInfected": "I think I'm infected" + "circle": "Este circulo muestra con cuantos usuarios ito usted se ha encontrado. No se preocupe, es solo un indicador para ver si usted esta en medio de muchos usuarios ito o no.", + "report": "Si usted cree que contrajo una infección porfavor reportelo aca para obtener mas información sobre que hacer. Esto también nos ayuda a informar otros usuarios ito sobre un posible riesgo de infección.", + "pause": "El boton de pausa le permite detener el rastreo. Por ejemplo, si usted esta usando equipo de protección o si esta en una situación donde quiera detener la aplicación.", + "next": "siguiente", + "done": "listo", + "buttonTitleInfected": "Creo que he contraido una infección" }, "home": { "lastIdFetch": "Last ID fetch",