From e7fcd621700f4ddb0a3a915fe07ec58b28706ac3 Mon Sep 17 00:00:00 2001 From: Jordan Good Date: Thu, 28 May 2020 00:10:10 -0400 Subject: [PATCH 1/2] Add accessibility props for external buttons --- src/assets/icon-external-arrow-light.svg | 4 ++ src/components/Button.tsx | 45 ++++++++++++++++--- src/components/Icon.tsx | 2 + src/locale/translations/en.json | 1 + src/locale/translations/fr.json | 1 + src/locale/translations/index.js | 2 +- src/screens/home/views/DiagnosedShareView.tsx | 1 + src/screens/home/views/DiagnosedView.tsx | 2 +- src/screens/home/views/ExposureView.tsx | 2 +- src/screens/home/views/InfoShareView.tsx | 16 ++++--- 10 files changed, 62 insertions(+), 14 deletions(-) create mode 100644 src/assets/icon-external-arrow-light.svg diff --git a/src/assets/icon-external-arrow-light.svg b/src/assets/icon-external-arrow-light.svg new file mode 100644 index 00000000..ef205618 --- /dev/null +++ b/src/assets/icon-external-arrow-light.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/Button.tsx b/src/components/Button.tsx index eedc986a..c780fbcd 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -1,10 +1,21 @@ import React from 'react'; import {useTheme} from '@shopify/restyle'; -import {Platform, StyleSheet, Text, TextStyle, TouchableOpacity, ViewStyle, ActivityIndicator} from 'react-native'; -import {Theme} from 'shared/theme'; +import { + Platform, + StyleSheet, + Text, + TextStyle, + TouchableOpacity, + ViewStyle, + ActivityIndicator, + AccessibilityRole, +} from 'react-native'; +import {Theme, palette} from 'shared/theme'; +import {useI18n} from '@shopify/react-i18n'; import {Box} from './Box'; import {Ripple} from './Ripple'; +import {Icon} from './Icon'; export interface ButtonProps { text?: string; @@ -13,9 +24,19 @@ export interface ButtonProps { color?: keyof Theme['colors']; disabled?: boolean; loading?: boolean; + externalLink?: boolean; } -export const Button = ({text, onPress, variant, color: buttonColorName, disabled, loading}: ButtonProps) => { +export const Button = ({ + text, + onPress, + variant, + color: buttonColorName, + disabled, + loading, + externalLink, +}: ButtonProps) => { + const [i18n] = useI18n(); const theme = useTheme(); const variantProps = theme.buttonVariants[variant]; const disabledProps = disabled ? variantProps.disabled || {} : {}; @@ -26,6 +47,14 @@ export const Button = ({text, onPress, variant, color: buttonColorName, disabled const buttonColor = buttonColorName && theme.colors[buttonColorName]; const onPressHandler = loading ? () => {} : onPress; + const externalLinkProps = externalLink + ? { + accessibilityLabel: text, + accessibilityHint: i18n.translate('Home.ExternalLinkHint'), + accessibilityRole: 'link' as AccessibilityRole, + } + : {}; + const externalArrowIcon = textColor === palette.white ? 'icon-external-arrow-light' : 'icon-external-arrow'; const content = ( {loading ? ( ) : ( - {text} + <> + {text} + {externalLink && } + )} ); if (Platform.OS === 'android') { return ( - + {content} ); } return ( - + {content} ); diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index ec0703ec..dc760980 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -10,6 +10,7 @@ import IconChevron from 'assets/icon-chevron.svg'; import IconClose from 'assets/icon-close.svg'; import IconEnterCode from 'assets/icon-enter-code.svg'; import IconExternalArrow from 'assets/icon-external-arrow.svg'; +import IconExternalArrowLight from 'assets/icon-external-arrow-light.svg'; import IconImportant from 'assets/icon-important.svg'; import IconMessages from 'assets/icon-messages.svg'; import IconNotify from 'assets/icon-notify.svg'; @@ -38,6 +39,7 @@ const ICONS = { 'icon-enter-code': IconEnterCode, 'icon-ellipsis': Ellipsis, 'icon-external-arrow': IconExternalArrow, + 'icon-external-arrow-light': IconExternalArrowLight, 'icon-important': IconImportant, 'icon-messages': IconMessages, 'icon-notify': IconNotify, diff --git a/src/locale/translations/en.json b/src/locale/translations/en.json index 4f99f251..2eb229a4 100644 --- a/src/locale/translations/en.json +++ b/src/locale/translations/en.json @@ -25,6 +25,7 @@ "NoConnectivity": "No internet connection", "NoConnectivityDetailed": "COVID Shield needs internet access to continue checking for potential exposure.", "AppName": "COVID Shield", + "ExternalLinkHint": "Opens in a new window", "LastCheckedMinutes": { "One": "Last checked {number} minute ago", "Other": "Last checked {number} minutes ago" diff --git a/src/locale/translations/fr.json b/src/locale/translations/fr.json index 43f7b495..abe384fe 100644 --- a/src/locale/translations/fr.json +++ b/src/locale/translations/fr.json @@ -25,6 +25,7 @@ "NoConnectivity": "Aucune connexion Internet", "NoConnectivityDetailed": "COVID Shield a besoin d'un accès Internet pour continuer de vérifier les expositions potentielles à la COVID-19.", "AppName": "COVID Shield", + "ExternalLinkHint": "Ouvre dans une nouvelle fenêtre", "LastCheckedMinutes": { "One": "Mis à jour il y a {number} minute", "Other": "Mis à jour il y a {number} minutes" diff --git a/src/locale/translations/index.js b/src/locale/translations/index.js index dde1c879..840a28fe 100644 --- a/src/locale/translations/index.js +++ b/src/locale/translations/index.js @@ -1 +1 @@ -export default JSON.parse("{\"en\":{\"Home\":{\"NoExposureDetected\":\"No exposure detected\",\"NoExposureDetectedDetailed\":\"Based on your random IDs, you have not been near someone in the past 14 days who has tested positive for COVID-19.\",\"ExposureDetected\":\"You have possibly been exposed to COVID-19\",\"ExposureDetectedDetailed\":\"Based on your random IDs, you have been near someone in the past 14 days who tested positive for COVID-19.\",\"SeeGuidance\":\"Read Canada COVID-19 guidance\",\"GuidanceUrl\":\"https://www.canada.ca/en/public-health/services/publications/diseases-conditions/covid-19-how-to-isolate-at-home.html\",\"SignalDataShared\":\"Thank you for helping to slow the spread\",\"SignalDataSharedDetailed\":{\"One\":\"You will receive a notification asking you to share your random IDs each day for the next {number} day.\",\"Other\":\"You will receive a notification asking you to share your random IDs each day for the next {number} days.\"},\"SignalDataSharedCTA\":\"Track your symptoms\",\"SymptomTrackerUrl\":\"https://ca.thrive.health/covid19app/action/88a5e9a7-db9e-487b-bc87-ce35035f8e5c?from=/home&navigateTo=/tracker/complete\",\"DailyShare\":\"Share your new random IDs\",\"DailyShareDetailed\":\"Sharing your data helps others to know if they have possibly been exposed to COVID-19.\",\"ShareRandomIDsCTA\":\"Share your random IDs\",\"BluetoothDisabled\":\"Bluetooth is off\",\"EnableBluetoothCTA\":\"Bluetooth is used to collect and share random IDs needed for COVID Shield to work.\",\"TurnOnBluetooth\":\"Turn on Bluetooth\",\"ExposureNotificationsDisabled\":\"Exposure notifications are off\",\"ExposureNotificationsDisabledDetailed\":\"Exposure notifications are needed for COVID Shield to work.\",\"EnableExposureNotificationsCTA\":\"Turn on exposure notifications\",\"NoConnectivity\":\"No internet connection\",\"NoConnectivityDetailed\":\"COVID Shield needs internet access to continue checking for potential exposure.\",\"AppName\":\"COVID Shield\",\"LastCheckedMinutes\":{\"One\":\"Last checked {number} minute ago\",\"Other\":\"Last checked {number} minutes ago\"},\"LastCheckedHours\":{\"One\":\"Last checked {number} hour ago\",\"Other\":\"Last checked {number} hours ago\"},\"LastCheckedDays\":{\"One\":\"Last checked {number} day ago\",\"Other\":\"Last checked {number} days ago\"}},\"OverlayClosed\":{\"SystemStatus\":\"COVID Shield is \",\"SystemStatusOn\":\"ON\",\"SystemStatusOff\":\"OFF\",\"NotificationStatus\":\"Push notifications are \",\"NotificationStatusOff\":\"OFF\",\"TapPrompt\":\"Tap for more information\"},\"OverlayOpen\":{\"BluetoothCardStatus\":\"Bluetooth is \",\"BluetoothCardStatusOff\":\"OFF\",\"BluetoothCardBody\":\"Bluetooth is used to collect and share random IDs needed for COVID Shield to work.\",\"BluetoothCardAction\":\"Turn on Bluetooth\",\"EnterCodeCardTitle\":\"COVID Shield code\",\"EnterCodeCardBody\":\"Has a health care professional asked you to enter a COVID Shield code?\",\"EnterCodeCardAction\":\"Enter code\",\"NotificationCardStatus\":\"Push notifications are \",\"NotificationCardStatusOff\":\"OFF\",\"NotificationCardBody\":\"You will not receive push notifications if you have possibly been exposed to COVID-19. Timely notification of potential exposure is important in helping to slow the spread of COVID-19.\",\"NotificationCardAction\":\"Turn on push notifications\",\"ExposureNotificationCardStatus\":\"Exposure notifications are \",\"ExposureNotificationCardStatusOff\":\"OFF\",\"ExposureNotificationCardBody\":\"Exposure notifications are needed for COVID Shield to work.\",\"ExposureNotificationCardAction\":\"Turn on exposure notifications\"},\"Info\":{\"CheckSymptoms\":\"Check symptoms\",\"SymptomsUrl\":\"https://ca.thrive.health/covid19/en\",\"TellAFriend\":\"Share app\",\"LearnMore\":\"How COVID Shield works\",\"ChangeLanguage\":\"Change language\",\"Privacy\":\"Read privacy policy\"},\"LanguageSelect\":{\"Title\":\"Language\",\"En\":\"English (Canada)\",\"Fr\":\"Français (Canada)\",\"EnShort\":\"English\",\"FrShort\":\"Français\",\"Close\":\"Back\"},\"Tutorial\":{\"step-1Title\":\"How COVID Shield works\",\"step-1\":\"Your phone uses Bluetooth to collect and share random IDs with phones near you with COVID Shield installed. These IDs are stored securely on each phone.\",\"step-2Title\":\"If you have potentially been exposed to COVID-19\",\"step-2\":\"You will receive a notification if you have been near someone in the past 14 days who has tested positive for COVID-19.\",\"step-3Title\":\"If you test positive for COVID-19\",\"step-3\":\"Anonymously notify others who have been near you in the past 14 days that they have possibly been exposed.\",\"ActionBack\":\"Back\",\"ActionNext\":\"Next\",\"ActionEnd\":\"Done\",\"Close\":\"Close\"},\"Sharing\":{\"Title\":\"Share app\",\"SubTitle\":\"Every person using COVID Shield helps to slow the spread of COVID-19. Sharing this app will not share any personal data.\",\"Platform-messages\":\"Share to Messages\",\"Platform-instagram\":\"Share to Instagram\",\"More\":\"More apps\",\"Message\":\"Join me in helping to slow the spread of COVID-19. Download the COVID Shield app: https://covidshield.app\",\"Close\":\"Close\"},\"Onboarding\":{\"ActionNext\":\"Next\",\"ActionEnd\":\"Done\",\"ActionBack\":\"Back\"},\"OnboardingPermissions\":{\"Title\":\"Your data is private\",\"Body\":\"COVID Shield takes a privacy-first approach to exposure notification.\",\"Body2\":\"Your random IDs are stored exclusively on your phone unless you choose to share them.\",\"Body3\":\"Use of COVID Shield is voluntary. You can delete your random IDs at any time.\"},\"OnboardingStart\":{\"Title\":\"Keep yourself and others safe\",\"Body1\":\"Get notified if you have potentially been exposed to COVID-19.\",\"Body2\":\"If you test positive for COVID-19, you can choose to anonymously share your data so others can be notified of possible exposure.\",\"TutorialAction\":\"Learn how COVID Shield works\"},\"Privacy\":{\"Title\":\"Privacy policy\",\"Close\":\"Close\"},\"ThankYou\":{\"Title\":\"Thank you for helping\",\"Body\":\"Exposure notifications are on. You will receive a notification if COVID Shield detects that you have possibly been exposed to COVID-19.\",\"Dismiss\":\"Dismiss\"},\"DataUpload\":{\"Cancel\":\"Cancel\",\"FormIntro\":\"Please enter your 8 digit COVID Shield code.\",\"Action\":\"Submit code\",\"InfoSmall\":\"Your random IDs will not be shared unless you give permission in the next step.\",\"ConsentTitle\":\"Share your random IDs\",\"ConsentBody\":\"You have been granted access by a health care professional to share the random IDs stored on your phone.\",\"ConsentBody2\":\"If you share your random IDs, others with COVID Shield who have been near you in the past 14 days will receive a notification that they have possibly been exposed. This notification will not include any information about you.\",\"ConsentBody3\":\"You will be notified once per day when new random IDs are available to be shared. You must grant permission each time for the random IDs to be shared. Sharing is voluntary.\",\"PrivacyPolicyLink\":\"View privacy policy\",\"ConsentAction\":\"I agree\",\"ShareToast\":\"Random IDs shared successfully\",\"ErrorTitle\":\"Code not recognized\",\"ErrorBody\":\"Your COVID Shield code could not be recognized. Please try again.\",\"ErrorAction\":\"OK\"},\"Notification\":{\"ExposedMessageTitle\":\"You have possibly been exposed to COVID-19\",\"ExposedMessageBody\":\"Based on your random IDs, you have been near someone in the past 14 days who tested positive for COVID-19.\",\"OffMessageTitle\":\"COVID Shield is off\",\"OffMessageBody\":\"Turn on COVID Shield to get notified if you have potentially been exposed to COVID-19.\",\"DailyUploadNotificationTitle\":\"Share your new random IDs\",\"DailyUploadNotificationBody\":\"Sharing your data helps others to know if they have possibly been exposed to COVID-19.\"},\"Partners\":{\"Label\":\"Developed in partnership with\"},\"BottomSheet\":{\"Collapse\":\"Close\"}},\"fr\":{\"Home\":{\"NoExposureDetected\":\"Aucune exposition à la COVID-19 détectée\",\"NoExposureDetectedDetailed\":\"Selon vos identifiants aléatoires, dans les 14 derniers jours, vous n'avez pas été à proximité d'une personne ayant reçu un résultat de test positif à la COVID-19.\",\"ExposureDetected\":\"Vous avez possiblement été exposé(e) à la COVID-19\",\"ExposureDetectedDetailed\":\"Selon vos identifiants aléatoires, dans les 14 derniers jours, vous avez été à proximité d'une personne ayant reçu un résultat de test positif à la COVID-19.\",\"SeeGuidance\":\"Lire les directives du Canada sur la COVID-19\",\"GuidanceUrl\":\"https://www.canada.ca/fr/sante-publique/services/publications/maladies-et-affections/covid-19-comment-isoler-chez-soi.html\",\"SignalDataShared\":\"Merci d'aider à prévenir la transmission\",\"SignalDataSharedDetailed\":{\"One\":\"Vous allez recevoir chaque jour, pour les {number} prochains jour, une notification vous demandant de partager vos identifiants aléatoires.\",\"Other\":\"Vous allez recevoir chaque jour, pour les {number} prochains jours, une notification vous demandant de partager vos identifiants aléatoires.\"},\"SignalDataSharedCTA\":\"Suivez vos symptômes\",\"SymptomTrackerUrl\":\"https://ca.thrive.health/covid19app/action/88a5e9a7-db9e-487b-bc87-ce35035f8e5c?from=/home&navigateTo=/tracker/complete\",\"DailyShare\":\"Partagez vos nouveaux identifiants aléatoires\",\"DailyShareDetailed\":\"Partager vos données aide les autres à savoir s'ils ont possiblement été exposés à la COVID-19.\",\"ShareRandomIDsCTA\":\"Partagez vos identifiants aléatoires\",\"BluetoothDisabled\":\"Le Bluetooth est désactivé\",\"EnableBluetoothCTA\":\"Le Bluetooth est utilisé pour collecter et partager des identifiants aléatoires nécessaires au fonctionnement de COVID Shield.\",\"TurnOnBluetooth\":\"Activez le Bluetooth\",\"ExposureNotificationsDisabled\":\"Les notifications d'exposition à la COVID-19 sont désactivées\",\"ExposureNotificationsDisabledDetailed\":\"Les notifications d'exposition à la COVID-19 sont nécessaires au fonctionnement de COVID Shield.\",\"EnableExposureNotificationsCTA\":\"Activez les notifications d'exposition à la COVID-19\",\"NoConnectivity\":\"Aucune connexion Internet\",\"NoConnectivityDetailed\":\"COVID Shield a besoin d'un accès Internet pour continuer de vérifier les expositions potentielles à la COVID-19.\",\"AppName\":\"COVID Shield\",\"LastCheckedMinutes\":{\"One\":\"Mis à jour il y a {number} minute\",\"Other\":\"Mis à jour il y a {number} minutes\"},\"LastCheckedHours\":{\"One\":\"Mis à jour il y a {number} heure\",\"Other\":\"Mis à jour il y a {number} heures\"},\"LastCheckedDays\":{\"One\":\"Mis à jour il y a {number} jour\",\"Other\":\"Mis à jour il y a {number} jours\"}},\"OverlayClosed\":{\"SystemStatus\":\"COVID Shield est \",\"SystemStatusOn\":\"ACTIVÉ\",\"SystemStatusOff\":\"DÉSACTIVÉ\",\"NotificationStatus\":\"Les notifications poussées sont \",\"NotificationStatusOff\":\"DÉSACTIVÉES\",\"TapPrompt\":\"Appuyez pour plus d'information\"},\"OverlayOpen\":{\"BluetoothCardStatus\":\"Le Bluetooth est \",\"BluetoothCardStatusOff\":\"DÉSACTIVÉ\",\"BluetoothCardBody\":\"Le Bluetooth est utilisé pour collecter et partager des identifiants aléatoires nécessaires au fonctionnement de COVID Shield.\",\"BluetoothCardAction\":\"Activez le Bluetooth\",\"EnterCodeCardTitle\":\"Code COVID Shield\",\"EnterCodeCardBody\":\"Un professionel de la santé vous a-t-il demandé d'entrer un code COVID Shield?\",\"EnterCodeCardAction\":\"Entrez le code\",\"NotificationCardStatus\":\"Les notifications poussées sont \",\"NotificationCardStatusOff\":\"DÉSACTIVÉES\",\"NotificationCardBody\":\"Vous ne recevrez pas de notifications poussées si vous avez possiblement été exposé(e) à la COVID-19. Les notifications spontanées sont importantes pour aider à prévenir la transmission de la COVID-19.\",\"NotificationCardAction\":\"Activez les notifications poussées\",\"ExposureNotificationCardStatus\":\"Les notifications d'exposition à la COVID-19 sont \",\"ExposureNotificationCardStatusOff\":\"DÉSACTIVÉES\",\"ExposureNotificationCardBody\":\"Les notifications d'exposition à la COVID-19 sont nécessaires au fonctionnement de COVID Shield.\",\"ExposureNotificationCardAction\":\"Activez les notifications d'exposition\"},\"Info\":{\"CheckSymptoms\":\"Vérifier vos symptômes\",\"SymptomsUrl\":\"https://ca.thrive.health/covid19/fr\",\"TellAFriend\":\"Partager l'application\",\"LearnMore\":\"Comment fonctionne COVID Shield\",\"ChangeLanguage\":\"Changer de langue\",\"Privacy\":\"Lire la politique de confidentialité\"},\"LanguageSelect\":{\"Title\":\"Langue\",\"En\":\"English (Canada)\",\"Fr\":\"Français (Canada)\",\"EnShort\":\"English\",\"FrShort\":\"Français\",\"Close\":\"Retour\"},\"Tutorial\":{\"step-1Title\":\"Comment fonctionne COVID Shield\",\"step-1\":\"Votre téléphone utilise la fonction Bluetooth pour collecter et partager des identifiants aléatoires avec d'autres téléphones à proximité qui ont l'application COVID Shield. Ces identifiants sont conservés en toute sécurité sur chaque téléphone.\",\"step-2Title\":\"Si vous avez potentiellement été exposé(e) à la COVID-19\",\"step-2\":\"Vous recevrez une notification si, dans les 14 derniers jours, vous avez été à proximité d'une personne ayant reçu un résultat de test positif à la COVID-19.\",\"step-3Title\":\"Si vous recevez un résultat de test positif à la COVID-19\",\"step-3\":\"Avisez anonymement ceux qui ont été à proximité de vous dans les 14 derniers jours qu'ils ont possiblement été exposés à la COVID-19.\",\"ActionBack\":\"Précédent\",\"ActionNext\":\"Suivant\",\"ActionEnd\":\"Terminé\",\"Close\":\"Fermer\"},\"Sharing\":{\"Title\":\"Partager l'application\",\"SubTitle\":\"Chaque personne utilisant COVID Shield aide à prévenir la transmission de la COVID-19. Partager cette application ne partage aucune donnée privée.\",\"Platform-messages\":\"Partager avec Messages\",\"Platform-instagram\":\"Partager avec Instagram\",\"More\":\"Plus d'applications\",\"Message\":\"Joignez-vous à moi pour aider à prévenir la transmission de la COVID-19. Téléchargez l'application COVID Shield : https://covidshield.app\",\"Close\":\"Fermer\"},\"Onboarding\":{\"ActionNext\":\"Suivant\",\"ActionEnd\":\"Terminé\",\"ActionBack\":\"Précédent\"},\"OnboardingPermissions\":{\"Title\":\"Vos données sont privées\",\"Body\":\"COVID Shield priorise la confidentialité lors d'envois de notifications d'exposition à la COVID-19.\",\"Body2\":\"Vos identifiants aléatoires sont conservés sur votre téléphone exclusivement, à moins que vous décidiez de les partager.\",\"Body3\":\"L'utilisation de COVID Shield est volontaire. Vous pouvez supprimer vos identifiants aléatoires à tout moment.\"},\"OnboardingStart\":{\"Title\":\"Protégez-vous, protégez les autres\",\"Body1\":\"Recevez une notification si vous avez potentiellement été exposé(e) à la COVID-19.\",\"Body2\":\"Si vous recevez un résultat de test positif à la COVID-19, vous pouvez choisir de partager vos données de façon anonyme pour aviser ceux qui ont possiblement été exposés.\",\"TutorialAction\":\"Découvrez comment COVID Shield fonctionne\"},\"Privacy\":{\"Title\":\"Politique de confidentialité\",\"Close\":\"Fermer\"},\"ThankYou\":{\"Title\":\"Merci d'aider\",\"Body\":\"Les notifications d’exposition sont activées. Si COVID Shield détecte que vous avez possiblement été exposé(e) à la COVID-19, vous recevrez une notification.\",\"Dismiss\":\"OK\"},\"DataUpload\":{\"Cancel\":\"Annuler\",\"FormIntro\":\"Entrez votre code COVID Shield à 8 chiffres.\",\"Action\":\"Soumettre le code\",\"InfoSmall\":\"Vos identifiants aléatoires ne seront pas partagés, à moins que vous donniez votre permission à l'étape suivante.\",\"ConsentTitle\":\"Partagez vos identifiants aléatoires\",\"ConsentBody\":\"Un professionnel de la santé vous a autorisé à partager les identifiants aléatoires conservés sur votre téléphone.\",\"ConsentBody2\":\"Si vous partagez vos identifiants aléatoires, ceux qui ont été à proximité de vous dans les 14 derniers jours avec l'application COVID Shield recevront une notification les avisant qu'ils ont possiblement été exposés à la COVID-19. Cette notification ne contiendra aucune information vous concernant.\",\"ConsentBody3\":\"Vous recevrez une notification par jour lorsque de nouveaux identifiants aléatoires pourront être partagés. Vous devrez accorder la permission chaque fois pour que les identifiants aléatoires soient partagés. Le partage est volontaire.\",\"PrivacyPolicyLink\":\"Voir la politique de confidentialité\",\"ConsentAction\":\"Accepter\",\"ShareToast\":\"Identifiants aléatoires partagés avec succès\",\"ErrorTitle\":\"Code non reconnu\",\"ErrorBody\":\"Votre code COVID Shield n'a pas pu être reconnu. Essayez de nouveau.\",\"ErrorAction\":\"OK\"},\"Notification\":{\"ExposedMessageTitle\":\"Vous avez possiblement été exposé(e)\",\"ExposedMessageBody\":\"Selon vos identifiants aléatoires, dans les 14 derniers jours, vous avez été à proximité d'une personne ayant reçu un résultat de test positif à la COVID-19.\",\"OffMessageTitle\":\"COVID Shield est désactivé\",\"OffMessageBody\":\"Activez COVID Shield pour recevoir une notification si vous avez potentiellement été exposé(e) à la COVID-19.\",\"DailyUploadNotificationTitle\":\"Partagez vos nouveaux identifiants aléatoires\",\"DailyUploadNotificationBody\":\"Partager vos données aide les autres à savoir s'ils ont possiblement été exposés à la COVID-19.\"},\"Partners\":{\"Label\":\"Développé en partenariat avec\"},\"BottomSheet\":{\"Collapse\":\"Fermer\"}}}") \ No newline at end of file +export default JSON.parse("{\"en\":{\"Home\":{\"NoExposureDetected\":\"No exposure detected\",\"NoExposureDetectedDetailed\":\"Based on your random IDs, you have not been near someone in the past 14 days who has tested positive for COVID-19.\",\"ExposureDetected\":\"You have possibly been exposed to COVID-19\",\"ExposureDetectedDetailed\":\"Based on your random IDs, you have been near someone in the past 14 days who tested positive for COVID-19.\",\"SeeGuidance\":\"Read Canada COVID-19 guidance\",\"GuidanceUrl\":\"https://www.canada.ca/en/public-health/services/publications/diseases-conditions/covid-19-how-to-isolate-at-home.html\",\"SignalDataShared\":\"Thank you for helping to slow the spread\",\"SignalDataSharedDetailed\":{\"One\":\"You will receive a notification asking you to share your random IDs each day for the next {number} day.\",\"Other\":\"You will receive a notification asking you to share your random IDs each day for the next {number} days.\"},\"SignalDataSharedCTA\":\"Track your symptoms\",\"SymptomTrackerUrl\":\"https://ca.thrive.health/covid19app/action/88a5e9a7-db9e-487b-bc87-ce35035f8e5c?from=/home&navigateTo=/tracker/complete\",\"DailyShare\":\"Share your new random IDs\",\"DailyShareDetailed\":\"Sharing your data helps others to know if they have possibly been exposed to COVID-19.\",\"ShareRandomIDsCTA\":\"Share your random IDs\",\"BluetoothDisabled\":\"Bluetooth is off\",\"EnableBluetoothCTA\":\"Bluetooth is used to collect and share random IDs needed for COVID Shield to work.\",\"TurnOnBluetooth\":\"Turn on Bluetooth\",\"ExposureNotificationsDisabled\":\"Exposure notifications are off\",\"ExposureNotificationsDisabledDetailed\":\"Exposure notifications are needed for COVID Shield to work.\",\"EnableExposureNotificationsCTA\":\"Turn on exposure notifications\",\"NoConnectivity\":\"No internet connection\",\"NoConnectivityDetailed\":\"COVID Shield needs internet access to continue checking for potential exposure.\",\"AppName\":\"COVID Shield\",\"ExternalLinkHint\":\"Opens in a new window\",\"LastCheckedMinutes\":{\"One\":\"Last checked {number} minute ago\",\"Other\":\"Last checked {number} minutes ago\"},\"LastCheckedHours\":{\"One\":\"Last checked {number} hour ago\",\"Other\":\"Last checked {number} hours ago\"},\"LastCheckedDays\":{\"One\":\"Last checked {number} day ago\",\"Other\":\"Last checked {number} days ago\"}},\"OverlayClosed\":{\"SystemStatus\":\"COVID Shield is \",\"SystemStatusOn\":\"ON\",\"SystemStatusOff\":\"OFF\",\"NotificationStatus\":\"Push notifications are \",\"NotificationStatusOff\":\"OFF\",\"TapPrompt\":\"Tap for more information\"},\"OverlayOpen\":{\"BluetoothCardStatus\":\"Bluetooth is \",\"BluetoothCardStatusOff\":\"OFF\",\"BluetoothCardBody\":\"Bluetooth is used to collect and share random IDs needed for COVID Shield to work.\",\"BluetoothCardAction\":\"Turn on Bluetooth\",\"EnterCodeCardTitle\":\"COVID Shield code\",\"EnterCodeCardBody\":\"Has a health care professional asked you to enter a COVID Shield code?\",\"EnterCodeCardAction\":\"Enter code\",\"NotificationCardStatus\":\"Push notifications are \",\"NotificationCardStatusOff\":\"OFF\",\"NotificationCardBody\":\"You will not receive push notifications if you have possibly been exposed to COVID-19. Timely notification of potential exposure is important in helping to slow the spread of COVID-19.\",\"NotificationCardAction\":\"Turn on push notifications\",\"ExposureNotificationCardStatus\":\"Exposure notifications are \",\"ExposureNotificationCardStatusOff\":\"OFF\",\"ExposureNotificationCardBody\":\"Exposure notifications are needed for COVID Shield to work.\",\"ExposureNotificationCardAction\":\"Turn on exposure notifications\"},\"Info\":{\"CheckSymptoms\":\"Check symptoms\",\"SymptomsUrl\":\"https://ca.thrive.health/covid19/en\",\"TellAFriend\":\"Share app\",\"LearnMore\":\"How COVID Shield works\",\"ChangeLanguage\":\"Change language\",\"Privacy\":\"Read privacy policy\"},\"LanguageSelect\":{\"Title\":\"Language\",\"En\":\"English (Canada)\",\"Fr\":\"Français (Canada)\",\"EnShort\":\"English\",\"FrShort\":\"Français\",\"Close\":\"Back\"},\"Tutorial\":{\"step-1Title\":\"How COVID Shield works\",\"step-1\":\"Your phone uses Bluetooth to collect and share random IDs with phones near you with COVID Shield installed. These IDs are stored securely on each phone.\",\"step-2Title\":\"If you have potentially been exposed to COVID-19\",\"step-2\":\"You will receive a notification if you have been near someone in the past 14 days who has tested positive for COVID-19.\",\"step-3Title\":\"If you test positive for COVID-19\",\"step-3\":\"Anonymously notify others who have been near you in the past 14 days that they have possibly been exposed.\",\"ActionBack\":\"Back\",\"ActionNext\":\"Next\",\"ActionEnd\":\"Done\",\"Close\":\"Close\"},\"Sharing\":{\"Title\":\"Share app\",\"SubTitle\":\"Every person using COVID Shield helps to slow the spread of COVID-19. Sharing this app will not share any personal data.\",\"Platform-messages\":\"Share to Messages\",\"Platform-instagram\":\"Share to Instagram\",\"More\":\"More apps\",\"Message\":\"Join me in helping to slow the spread of COVID-19. Download the COVID Shield app: https://covidshield.app\",\"Close\":\"Close\"},\"Onboarding\":{\"ActionNext\":\"Next\",\"ActionEnd\":\"Done\",\"ActionBack\":\"Back\"},\"OnboardingPermissions\":{\"Title\":\"Your data is private\",\"Body\":\"COVID Shield takes a privacy-first approach to exposure notification.\",\"Body2\":\"Your random IDs are stored exclusively on your phone unless you choose to share them.\",\"Body3\":\"Use of COVID Shield is voluntary. You can delete your random IDs at any time.\"},\"OnboardingStart\":{\"Title\":\"Keep yourself and others safe\",\"Body1\":\"Get notified if you have potentially been exposed to COVID-19.\",\"Body2\":\"If you test positive for COVID-19, you can choose to anonymously share your data so others can be notified of possible exposure.\",\"TutorialAction\":\"Learn how COVID Shield works\"},\"Privacy\":{\"Title\":\"Privacy policy\",\"Close\":\"Close\"},\"ThankYou\":{\"Title\":\"Thank you for helping\",\"Body\":\"Exposure notifications are on. You will receive a notification if COVID Shield detects that you have possibly been exposed to COVID-19.\",\"Dismiss\":\"Dismiss\"},\"DataUpload\":{\"Cancel\":\"Cancel\",\"FormIntro\":\"Please enter your 8 digit COVID Shield code.\",\"Action\":\"Submit code\",\"InfoSmall\":\"Your random IDs will not be shared unless you give permission in the next step.\",\"ConsentTitle\":\"Share your random IDs\",\"ConsentBody\":\"You have been granted access by a health care professional to share the random IDs stored on your phone.\",\"ConsentBody2\":\"If you share your random IDs, others with COVID Shield who have been near you in the past 14 days will receive a notification that they have possibly been exposed. This notification will not include any information about you.\",\"ConsentBody3\":\"You will be notified once per day when new random IDs are available to be shared. You must grant permission each time for the random IDs to be shared. Sharing is voluntary.\",\"PrivacyPolicyLink\":\"View privacy policy\",\"ConsentAction\":\"I agree\",\"ShareToast\":\"Random IDs shared successfully\",\"ErrorTitle\":\"Code not recognized\",\"ErrorBody\":\"Your COVID Shield code could not be recognized. Please try again.\",\"ErrorAction\":\"OK\"},\"Notification\":{\"ExposedMessageTitle\":\"You have possibly been exposed to COVID-19\",\"ExposedMessageBody\":\"Based on your random IDs, you have been near someone in the past 14 days who tested positive for COVID-19.\",\"OffMessageTitle\":\"COVID Shield is off\",\"OffMessageBody\":\"Turn on COVID Shield to get notified if you have potentially been exposed to COVID-19.\",\"DailyUploadNotificationTitle\":\"Share your new random IDs\",\"DailyUploadNotificationBody\":\"Sharing your data helps others to know if they have possibly been exposed to COVID-19.\"},\"Partners\":{\"Label\":\"Developed in partnership with\"},\"BottomSheet\":{\"Collapse\":\"Close\"}},\"fr\":{\"Home\":{\"NoExposureDetected\":\"Aucune exposition à la COVID-19 détectée\",\"NoExposureDetectedDetailed\":\"Selon vos identifiants aléatoires, dans les 14 derniers jours, vous n'avez pas été à proximité d'une personne ayant reçu un résultat de test positif à la COVID-19.\",\"ExposureDetected\":\"Vous avez possiblement été exposé(e) à la COVID-19\",\"ExposureDetectedDetailed\":\"Selon vos identifiants aléatoires, dans les 14 derniers jours, vous avez été à proximité d'une personne ayant reçu un résultat de test positif à la COVID-19.\",\"SeeGuidance\":\"Lire les directives du Canada sur la COVID-19\",\"GuidanceUrl\":\"https://www.canada.ca/fr/sante-publique/services/publications/maladies-et-affections/covid-19-comment-isoler-chez-soi.html\",\"SignalDataShared\":\"Merci d'aider à prévenir la transmission\",\"SignalDataSharedDetailed\":{\"One\":\"Vous allez recevoir chaque jour, pour les {number} prochains jour, une notification vous demandant de partager vos identifiants aléatoires.\",\"Other\":\"Vous allez recevoir chaque jour, pour les {number} prochains jours, une notification vous demandant de partager vos identifiants aléatoires.\"},\"SignalDataSharedCTA\":\"Suivez vos symptômes\",\"SymptomTrackerUrl\":\"https://ca.thrive.health/covid19app/action/88a5e9a7-db9e-487b-bc87-ce35035f8e5c?from=/home&navigateTo=/tracker/complete\",\"DailyShare\":\"Partagez vos nouveaux identifiants aléatoires\",\"DailyShareDetailed\":\"Partager vos données aide les autres à savoir s'ils ont possiblement été exposés à la COVID-19.\",\"ShareRandomIDsCTA\":\"Partagez vos identifiants aléatoires\",\"BluetoothDisabled\":\"Le Bluetooth est désactivé\",\"EnableBluetoothCTA\":\"Le Bluetooth est utilisé pour collecter et partager des identifiants aléatoires nécessaires au fonctionnement de COVID Shield.\",\"TurnOnBluetooth\":\"Activez le Bluetooth\",\"ExposureNotificationsDisabled\":\"Les notifications d'exposition à la COVID-19 sont désactivées\",\"ExposureNotificationsDisabledDetailed\":\"Les notifications d'exposition à la COVID-19 sont nécessaires au fonctionnement de COVID Shield.\",\"EnableExposureNotificationsCTA\":\"Activez les notifications d'exposition à la COVID-19\",\"NoConnectivity\":\"Aucune connexion Internet\",\"NoConnectivityDetailed\":\"COVID Shield a besoin d'un accès Internet pour continuer de vérifier les expositions potentielles à la COVID-19.\",\"AppName\":\"COVID Shield\",\"ExternalLinkHint\":\"Ouvre dans une nouvelle fenêtre\",\"LastCheckedMinutes\":{\"One\":\"Mis à jour il y a {number} minute\",\"Other\":\"Mis à jour il y a {number} minutes\"},\"LastCheckedHours\":{\"One\":\"Mis à jour il y a {number} heure\",\"Other\":\"Mis à jour il y a {number} heures\"},\"LastCheckedDays\":{\"One\":\"Mis à jour il y a {number} jour\",\"Other\":\"Mis à jour il y a {number} jours\"}},\"OverlayClosed\":{\"SystemStatus\":\"COVID Shield est \",\"SystemStatusOn\":\"ACTIVÉ\",\"SystemStatusOff\":\"DÉSACTIVÉ\",\"NotificationStatus\":\"Les notifications poussées sont \",\"NotificationStatusOff\":\"DÉSACTIVÉES\",\"TapPrompt\":\"Appuyez pour plus d'information\"},\"OverlayOpen\":{\"BluetoothCardStatus\":\"Le Bluetooth est \",\"BluetoothCardStatusOff\":\"DÉSACTIVÉ\",\"BluetoothCardBody\":\"Le Bluetooth est utilisé pour collecter et partager des identifiants aléatoires nécessaires au fonctionnement de COVID Shield.\",\"BluetoothCardAction\":\"Activez le Bluetooth\",\"EnterCodeCardTitle\":\"Code COVID Shield\",\"EnterCodeCardBody\":\"Un professionel de la santé vous a-t-il demandé d'entrer un code COVID Shield?\",\"EnterCodeCardAction\":\"Entrez le code\",\"NotificationCardStatus\":\"Les notifications poussées sont \",\"NotificationCardStatusOff\":\"DÉSACTIVÉES\",\"NotificationCardBody\":\"Vous ne recevrez pas de notifications poussées si vous avez possiblement été exposé(e) à la COVID-19. Les notifications spontanées sont importantes pour aider à prévenir la transmission de la COVID-19.\",\"NotificationCardAction\":\"Activez les notifications poussées\",\"ExposureNotificationCardStatus\":\"Les notifications d'exposition à la COVID-19 sont \",\"ExposureNotificationCardStatusOff\":\"DÉSACTIVÉES\",\"ExposureNotificationCardBody\":\"Les notifications d'exposition à la COVID-19 sont nécessaires au fonctionnement de COVID Shield.\",\"ExposureNotificationCardAction\":\"Activez les notifications d'exposition\"},\"Info\":{\"CheckSymptoms\":\"Vérifier vos symptômes\",\"SymptomsUrl\":\"https://ca.thrive.health/covid19/fr\",\"TellAFriend\":\"Partager l'application\",\"LearnMore\":\"Comment fonctionne COVID Shield\",\"ChangeLanguage\":\"Changer de langue\",\"Privacy\":\"Lire la politique de confidentialité\"},\"LanguageSelect\":{\"Title\":\"Langue\",\"En\":\"English (Canada)\",\"Fr\":\"Français (Canada)\",\"EnShort\":\"English\",\"FrShort\":\"Français\",\"Close\":\"Retour\"},\"Tutorial\":{\"step-1Title\":\"Comment fonctionne COVID Shield\",\"step-1\":\"Votre téléphone utilise la fonction Bluetooth pour collecter et partager des identifiants aléatoires avec d'autres téléphones à proximité qui ont l'application COVID Shield. Ces identifiants sont conservés en toute sécurité sur chaque téléphone.\",\"step-2Title\":\"Si vous avez potentiellement été exposé(e) à la COVID-19\",\"step-2\":\"Vous recevrez une notification si, dans les 14 derniers jours, vous avez été à proximité d'une personne ayant reçu un résultat de test positif à la COVID-19.\",\"step-3Title\":\"Si vous recevez un résultat de test positif à la COVID-19\",\"step-3\":\"Avisez anonymement ceux qui ont été à proximité de vous dans les 14 derniers jours qu'ils ont possiblement été exposés à la COVID-19.\",\"ActionBack\":\"Précédent\",\"ActionNext\":\"Suivant\",\"ActionEnd\":\"Terminé\",\"Close\":\"Fermer\"},\"Sharing\":{\"Title\":\"Partager l'application\",\"SubTitle\":\"Chaque personne utilisant COVID Shield aide à prévenir la transmission de la COVID-19. Partager cette application ne partage aucune donnée privée.\",\"Platform-messages\":\"Partager avec Messages\",\"Platform-instagram\":\"Partager avec Instagram\",\"More\":\"Plus d'applications\",\"Message\":\"Joignez-vous à moi pour aider à prévenir la transmission de la COVID-19. Téléchargez l'application COVID Shield : https://covidshield.app\",\"Close\":\"Fermer\"},\"Onboarding\":{\"ActionNext\":\"Suivant\",\"ActionEnd\":\"Terminé\",\"ActionBack\":\"Précédent\"},\"OnboardingPermissions\":{\"Title\":\"Vos données sont privées\",\"Body\":\"COVID Shield priorise la confidentialité lors d'envois de notifications d'exposition à la COVID-19.\",\"Body2\":\"Vos identifiants aléatoires sont conservés sur votre téléphone exclusivement, à moins que vous décidiez de les partager.\",\"Body3\":\"L'utilisation de COVID Shield est volontaire. Vous pouvez supprimer vos identifiants aléatoires à tout moment.\"},\"OnboardingStart\":{\"Title\":\"Protégez-vous, protégez les autres\",\"Body1\":\"Recevez une notification si vous avez potentiellement été exposé(e) à la COVID-19.\",\"Body2\":\"Si vous recevez un résultat de test positif à la COVID-19, vous pouvez choisir de partager vos données de façon anonyme pour aviser ceux qui ont possiblement été exposés.\",\"TutorialAction\":\"Découvrez comment COVID Shield fonctionne\"},\"Privacy\":{\"Title\":\"Politique de confidentialité\",\"Close\":\"Fermer\"},\"ThankYou\":{\"Title\":\"Merci d'aider\",\"Body\":\"Les notifications d’exposition sont activées. Si COVID Shield détecte que vous avez possiblement été exposé(e) à la COVID-19, vous recevrez une notification.\",\"Dismiss\":\"OK\"},\"DataUpload\":{\"Cancel\":\"Annuler\",\"FormIntro\":\"Entrez votre code COVID Shield à 8 chiffres.\",\"Action\":\"Soumettre le code\",\"InfoSmall\":\"Vos identifiants aléatoires ne seront pas partagés, à moins que vous donniez votre permission à l'étape suivante.\",\"ConsentTitle\":\"Partagez vos identifiants aléatoires\",\"ConsentBody\":\"Un professionnel de la santé vous a autorisé à partager les identifiants aléatoires conservés sur votre téléphone.\",\"ConsentBody2\":\"Si vous partagez vos identifiants aléatoires, ceux qui ont été à proximité de vous dans les 14 derniers jours avec l'application COVID Shield recevront une notification les avisant qu'ils ont possiblement été exposés à la COVID-19. Cette notification ne contiendra aucune information vous concernant.\",\"ConsentBody3\":\"Vous recevrez une notification par jour lorsque de nouveaux identifiants aléatoires pourront être partagés. Vous devrez accorder la permission chaque fois pour que les identifiants aléatoires soient partagés. Le partage est volontaire.\",\"PrivacyPolicyLink\":\"Voir la politique de confidentialité\",\"ConsentAction\":\"Accepter\",\"ShareToast\":\"Identifiants aléatoires partagés avec succès\",\"ErrorTitle\":\"Code non reconnu\",\"ErrorBody\":\"Votre code COVID Shield n'a pas pu être reconnu. Essayez de nouveau.\",\"ErrorAction\":\"OK\"},\"Notification\":{\"ExposedMessageTitle\":\"Vous avez possiblement été exposé(e)\",\"ExposedMessageBody\":\"Selon vos identifiants aléatoires, dans les 14 derniers jours, vous avez été à proximité d'une personne ayant reçu un résultat de test positif à la COVID-19.\",\"OffMessageTitle\":\"COVID Shield est désactivé\",\"OffMessageBody\":\"Activez COVID Shield pour recevoir une notification si vous avez potentiellement été exposé(e) à la COVID-19.\",\"DailyUploadNotificationTitle\":\"Partagez vos nouveaux identifiants aléatoires\",\"DailyUploadNotificationBody\":\"Partager vos données aide les autres à savoir s'ils ont possiblement été exposés à la COVID-19.\"},\"Partners\":{\"Label\":\"Développé en partenariat avec\"},\"BottomSheet\":{\"Collapse\":\"Fermer\"}}}") \ No newline at end of file diff --git a/src/screens/home/views/DiagnosedShareView.tsx b/src/screens/home/views/DiagnosedShareView.tsx index 9d833686..49c54fa3 100644 --- a/src/screens/home/views/DiagnosedShareView.tsx +++ b/src/screens/home/views/DiagnosedShareView.tsx @@ -30,6 +30,7 @@ export const DiagnosedShareView = () => { text={i18n.translate('Home.SignalDataSharedCTA')} variant="bigHollow" color="bodyText" + externalLink onPress={toSymptomTracker} /> diff --git a/src/screens/home/views/DiagnosedView.tsx b/src/screens/home/views/DiagnosedView.tsx index 0d49526e..e4d4fe45 100644 --- a/src/screens/home/views/DiagnosedView.tsx +++ b/src/screens/home/views/DiagnosedView.tsx @@ -29,7 +29,7 @@ export const DiagnosedView = () => { {i18n.translate(pluralizeKey('Home.SignalDataSharedDetailed', daysDiff), {number: daysDiff})} -