-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translate the info confirmation dialogue (#125)
* Add additional Spanish translations * Translate haitian creole's label * Fix locators on tests * pretty * Use Google Translate on the languages I don't speak * computers * oops forgot a stanza * Update README.md
- Loading branch information
1 parent
1db3756
commit 8015731
Showing
9 changed files
with
138 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"LocaleSwitcher": { | ||
"label": "Idioma", | ||
"locale": "{locale, select, en {🇺🇸 English} es {🇪🇸 Español} fr {🇫🇷 Français} ht {🇭🇹 Haitian Creole} zh {🇨🇳 中文} other {Unknown}}" | ||
"locale": "{locale, select, en {🇺🇸 English} es {🇪🇸 Español} fr {🇫🇷 Français} ht {🇭🇹 Kreyòl ayisyen} zh {🇨🇳 中文} other {Unknown}}" | ||
}, | ||
"Landing": { | ||
"welcome": "¡Bienvenidos a MeshForms!" | ||
|
@@ -39,11 +39,26 @@ | |
"NJ": "Nueva Jersey" | ||
}, | ||
"thankYou": { | ||
"header": "¡Gracias! Revisa su correo electronico, por favor.", | ||
"header": "¡Gracias! Por favor revisa su correo electronico.", | ||
"thankYou": "Recibirá un correo electronico de nosotros en {slo} con instrucciónes, incluyendo cómo entregar fotos panoramicos.", | ||
"minutes": "5-10 minutos", | ||
"days": "2-3 dias", | ||
"support": "Si no vista el correco electronico, por favor revisa su carpeta de \"Spam\", o envia un correo electronico a <support>[email protected]</support> por ayuda." | ||
}, | ||
"errors": { | ||
"error": "No pudó entregar el Join Form:", | ||
"errorTryAgain": "No pudó entregar el Join Form. Por favor intentar otra vez más tarde, o contata [email protected] por ayuda.", | ||
"confirm": "Por favor confirma algo información", | ||
"captchaFail": "Por favor completa una etapa adicional para confirmar su entrega." | ||
} | ||
}, | ||
"InfoConfirmation": { | ||
"goBack": "Regresar", | ||
"useOriginal": "Usa original", | ||
"acceptChanges": "Acceptar los cambios", | ||
"pleaseConfirmHeader": "Por favor confirma algo información", | ||
"pleaseConfirmBody": "Debíamos que reformatear algunos de sus datos. Por favor asegurar que los campos abajos son ascertados.", | ||
"originalInformationColumnHeader": "Original", | ||
"newInformationColumnHeader": "Nuevo" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"LocaleSwitcher": { | ||
"label": "Langue", | ||
"locale": "{locale, select, en {🇺🇸 English} es {🇪🇸 Español} fr {🇫🇷 Français} ht {🇭🇹 Haitian Creole} zh {🇨🇳 中文} other {Unknown}}" | ||
"locale": "{locale, select, en {🇺🇸 English} es {🇪🇸 Español} fr {🇫🇷 Français} ht {🇭🇹 Kreyòl ayisyen} zh {🇨🇳 中文} other {Unknown}}" | ||
}, | ||
"Landing": { | ||
"welcome": "Bienvenue dans MeshForms !" | ||
|
@@ -44,6 +44,21 @@ | |
"minutes": "5-10 minutes", | ||
"days": "2-3 jours", | ||
"support": "Si vous ne voyez pas un courriel de nous, veuillez vérifier votre dossier \"Spam\" ou envoyer un message à <support>[email protected]</support> pour obtenir de l'aide." | ||
}, | ||
"errors": { | ||
"error": "Impossible de soumettre le formulaire d'inscription :", | ||
"errorTryAgain": "Impossible de soumettre le formulaire d'inscription. Veuillez réessayer plus tard ou contacter [email protected] pour obtenir de l'aide.", | ||
"confirm": "Veuillez confirmer certaines informations", | ||
"captchaFail": "Veuillez effectuer une étape de vérification supplémentaire pour confirmer votre soumission" | ||
} | ||
}, | ||
"InfoConfirmation": { | ||
"goBack": "Revenir en arrière", | ||
"useOriginal": "Utiliser l'original", | ||
"acceptChanges": "Accepter les modifications", | ||
"pleaseConfirmHeader": "Veuillez confirmer certaines informations", | ||
"pleaseConfirmBody": "Nous avons dû reformater certaines de vos informations. Veuillez vous assurer que les champs ci-dessous sont exacts.", | ||
"originalInformationColumnHeader": "Original", | ||
"newInformationColumnHeader": "Nouveau" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"LocaleSwitcher": { | ||
"label": "Lang", | ||
"locale": "{locale, select, en {🇺🇸 English} es {🇪🇸 Español} fr {🇫🇷 Français} ht {🇭🇹 Haitian Creole} zh {🇨🇳 中文} other {Unknown}}" | ||
"locale": "{locale, select, en {🇺🇸 English} es {🇪🇸 Español} fr {🇫🇷 Français} ht {🇭🇹 Kreyòl ayisyen} zh {🇨🇳 中文} other {Unknown}}" | ||
}, | ||
"Landing": { | ||
"welcome": "Byenveni nan MeshForms!" | ||
|
@@ -44,6 +44,21 @@ | |
"minutes": "5-10 minit", | ||
"days": "2-3 jou", | ||
"support": "Si ou pa wè imèl la, tanpri tcheke dosye \"Spam\" ou a, oswa voye yon imèl ba <support>[email protected]</support> pou jwenn èd." | ||
}, | ||
"errors": { | ||
"error": "Pa t 'kapab soumèt Fòm Join:", | ||
"errorTryAgain": "Pa t 'kapab soumèt Fòm Join. Tanpri eseye ankò pita, oswa kontakte [email protected] pou asistans.", | ||
"confirm": "Tanpri konfime kèk enfòmasyon", | ||
"captchaFail": "Tanpri ranpli yon etap verifikasyon adisyonèl pou konfime soumèt ou a" | ||
} | ||
}, | ||
"InfoConfirmation": { | ||
"goBack": "Tounen", | ||
"useOriginal": "Sèvi ak orijinal", | ||
"acceptChanges": "Aksepte Chanjman", | ||
"pleaseConfirmHeader": "Tanpri konfime kèk enfòmasyon", | ||
"pleaseConfirmBody": "Nou te bezwen re-fòma kèk nan enfòmasyon ou yo. Tanpri asire ke jaden ki anba yo egzat.", | ||
"originalInformationColumnHeader": "Original", | ||
"newInformationColumnHeader": "Nouvo" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"LocaleSwitcher": { | ||
"label": "语言", | ||
"locale": "{locale, select, en {🇺🇸 English} es {🇪🇸 Español} fr {🇫🇷 Français} ht {🇭🇹 Haitian Creole} zh {🇨🇳 中文} other {Unknown}}" | ||
"locale": "{locale, select, en {🇺🇸 English} es {🇪🇸 Español} fr {🇫🇷 Français} ht {🇭🇹 Kreyòl ayisyen} zh {🇨🇳 中文} other {Unknown}}" | ||
}, | ||
"Landing": { | ||
"welcome": "欢迎来到 MeshForms!" | ||
|
@@ -44,6 +44,21 @@ | |
"minutes": "5-10 分钟", | ||
"days": "2-3 天", | ||
"support": "如果您没有看到电子邮件,请检查您的\"垃圾邮件\"文件夹,或发送电子邮件至 <support>[email protected]</support> 寻求帮助。" | ||
}, | ||
"errors": { | ||
"error": "无法提交加入表单:", | ||
"errorTryAgain": "无法提交加入表单。请稍后重试,或联系 [email protected] 寻求帮助。", | ||
"confirm": "请确认一些信息", | ||
"captchaFail": "请完成额外的验证步骤以确认您的提交" | ||
} | ||
}, | ||
"InfoConfirmation": { | ||
"goBack": "返回", | ||
"useOriginal": "使用原始信息", | ||
"acceptChanges": "接受更改", | ||
"pleaseConfirmHeader": "请确认一些信息", | ||
"pleaseConfirmBody": "我们需要重新格式化您的一些信息。请确保以下字段准确无误。", | ||
"originalInformationColumnHeader": "原始信息", | ||
"newInformationColumnHeader": "新信息" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { JoinFormValues } from "@/components/JoinForm/JoinForm"; | ||
import { test, expect } from "./mock/test"; | ||
|
||
import { | ||
sampleData, | ||
fillOutJoinForm, | ||
submitConfirmationDialogExpected, | ||
expectSuccess, | ||
} from "./util"; | ||
|
||
const joinFormTimeout = 40000; | ||
const unitTestTimeout = 5000; | ||
|
||
test("es confirm street address", async ({ page }) => { | ||
test.setTimeout(joinFormTimeout); | ||
await page.goto("/join"); | ||
|
||
// Is the page title correct? | ||
await expect(page).toHaveTitle(/Join Our Community Network!/); | ||
|
||
await page | ||
.locator("[id='joinform-locale-switcher-select']") | ||
.selectOption("🇪🇸 Español"); | ||
|
||
await expect(page.locator("[id='joinform-title']")).toHaveText( | ||
"Únase NYC Mesh", | ||
); | ||
|
||
let data: JoinFormValues = Object.assign({}, sampleData); | ||
data.street_address = "197 prospect pl"; | ||
|
||
// Set up sample data. | ||
await fillOutJoinForm(page, data); | ||
|
||
await submitConfirmationDialogExpected(page, 2000); | ||
|
||
// Ensure the dialogue is translated | ||
await expect(page.locator("[id='alert-dialog-description']")).toHaveText( | ||
"Debíamos que reformatear algunos de sus datos. Por favor asegurar que los campos abajos son ascertados.", | ||
); | ||
|
||
await page.locator("[name='confirm']").click(); | ||
|
||
await expectSuccess(page, unitTestTimeout); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters