Skip to content

Commit e013102

Browse files
authored
fix wrong locale order in checkin page (#342)
* fix wrong locale order This was clearly due to trying to keep the boldface for `recover`. Here commit before having locales: - https://github.com/railslove/rcvr-app/blob/638a7c3258ac58dc7220bc7e49346bb052214382/pages/checkin.tsx#L205-L223
1 parent a3546b6 commit e013102

File tree

4 files changed

+12
-22
lines changed

4 files changed

+12
-22
lines changed

pages/checkin.de.ts

+3-7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,9 @@ const de = {
1313
coronaRegulations:
1414
'Durch die aktuellen Corona-Verordnungen musst du Deine Kontaktdaten hinterlegen, wenn Du in einem Betrieb bist der zu Schutzmaßnahmen verpflichtet ist, wie z.B. Restaurants. Die App kann auch freiwillig genutzt werden, um die Nachverfolgung zu unterstützen.',
1515

16-
dataProtection: [
17-
'Datenschutz ist uns dabei sehr wichtig!',
18-
isRcvrEnv
19-
? 'speichert Deine Daten verschlüsselt und sicher.'
20-
: 'Ihre Daten werden verschlüsselt und sicher gespeichert.',
21-
'Ihre Daten werden verschlüsselt und sicher gespeichert.',
22-
].join(' '),
16+
dataProtection1: 'Datenschutz ist uns dabei sehr wichtig!',
17+
dataProtection2: 'Ihre Daten werden verschlüsselt und sicher gespeichert.',
18+
dataProtection2_rcvr: 'speichert Deine Daten verschlüsselt und sicher.',
2319

2420
ownerIsBlockedMessage: [
2521
'Die Kontaktdatenerfassung mit recover ist für diesen Betrieb leider nicht mehr aktiv. Bitte',

pages/checkin.en.ts

+3-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@ const en: typeof de = {
1212
coronaRegulations:
1313
'Current corona regulations require you to leave your contact information if you are in a business that is required to take protective measures, such as restaurants. The app can also be used voluntarily to assist with tracking.',
1414

15-
dataProtection: [
16-
'Privacy is very important to us in this!',
17-
isRcvrEnv
18-
? 'stores your data encrypted and secure.'
19-
: 'Your data is stored encrypted and secure.',
20-
'Your data will be stored encrypted and secure.',
21-
].join(' '),
15+
dataProtection1: 'Data protection is very important to us!',
16+
dataProtection2: 'Your data is encrypted and stored securely.',
17+
dataProtection2_rcvr: 'stores your data encrypted and secure.',
2218

2319
ownerIsBlockedMessage: [
2420
'Sorry, contact data collection with recover is no longer active for this business. Please',

pages/checkin.pl.ts

+4-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@ const pl: typeof de = {
1414
coronaRegulations:
1515
"Ze względu na obowiązujące przepisy corona, musisz zostawić swoje dane kontaktowe, jeśli jesteś w biznesie, który jest zobowiązany do podjęcia środków ochronnych, takich jak restauracje.' Aplikacja może być również używana dobrowolnie, aby pomóc w śledzeniu",
1616

17-
dataProtection: [
18-
'Ochrona danych jest dla nas bardzo ważna!',
19-
isRcvrEnv
20-
? 'przechowuje Twoje dane zaszyfrowane i bezpieczne'
21-
: 'Twoje dane są przechowywane w sposób zaszyfrowany i bezpieczny.',
22-
'Twoje dane będą przechowywane w sposób zaszyfrowany i bezpieczny',
23-
].join(' '),
17+
dataProtection1: 'Ochrona danych jest dla nas bardzo ważna!',
18+
dataProtection2:
19+
'Twoje dane są zaszyfrowane i przechowywane w bezpieczny sposób.',
20+
dataProtection2_rcvr: 'przechowuje Twoje dane zaszyfrowane i bezpieczne',
2421

2522
ownerIsBlockedMessage: [
2623
'Przepraszamy, zbieranie danych kontaktowych z odzysku nie jest już aktywne dla tej firmy. Proszę',

pages/checkin.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,10 @@ export default function CheckinPage() {
216216
<p>{t('introText')}</p>
217217
<p>{t('address')}</p>
218218
<p>
219+
{t('dataProtection1')}
219220
{isRcvrEnv ? <b>recover</b> : null}
220221
{isRcvrEnv ? ' ' : null}
221-
{t('dataProtection')}
222+
{isRcvrEnv ? t('dataProtection2_rcvr') : t('dataProtection2')}
222223
</p>
223224
</Text>
224225
<Box height={6} />

0 commit comments

Comments
 (0)