-
Notifications
You must be signed in to change notification settings - Fork 3
fix/df-1065: Fixed optional + welsh yes/no #438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d1bae8e
Fixed optional + welsh yes/no
jbarnsley10 4728483
Fixes
jbarnsley10 7fc3a65
Corrected 'No' in cy.json
jbarnsley10 f677c11
Merge branch 'main' into fix/df-1065-optional-and-yes-no
jbarnsley10 21d5773
Removed debug
jbarnsley10 cbd47d2
Translates 'Important' in preview banner
jbarnsley10 ec0a561
Merge branch 'main' into fix/df-1065-optional-and-yes-no
jbarnsley10 8827a1e
Handles translations for characterCount
jbarnsley10 b08460e
Merge branch 'fix/df-1065-optional-and-yes-no' of https://github.com/…
jbarnsley10 20f3567
Removed 'as unknown' for PaymentFIeld
jbarnsley10 65755ce
Added comment in JSON
jbarnsley10 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -111,6 +111,7 @@ | |
| "body": "Os hoffech dderbyn e-bost prawf, [[link]] yr hoffech i gyflwyniadau ffurflen fynd iddo.", | ||
| "linkText": "nodwch y cyfeiriad e-bost (yn agor mewn tab newydd)" | ||
| }, | ||
| "bannerTitle": "Pwysig", | ||
| "bannerForce": "Rhagolwg o ffurflen [[previewMode]] yw hon. Peidiwch â rhoi gwybodaeth bersonol.", | ||
| "bannerText": "Dyma ragolwg o dudalen ffurflen [[previewMode]] rydych chi'n ei golygu.", | ||
| "previousPages": "Mae'n dibynnu ar atebion o dudalennau cynharach yn y ffurflen. Yn y fersiwn fyw, bydd angen i ddefnyddwyr gwblhau'r cwestiynau hynny yn gyntaf." | ||
|
|
@@ -220,7 +221,7 @@ | |
|
|
||
| "yesNoField": { | ||
| "yes": "Ie", | ||
| "no": "Na", | ||
| "no": "Nage", | ||
| "validation": { | ||
| "selectYesNoRequired": "{{#label}} - dewiswch ie neu na" | ||
| } | ||
|
|
@@ -245,7 +246,7 @@ | |
| }, | ||
|
|
||
| "paymentField": { | ||
| "detailsRequired": "Angen manylion talu", | ||
| "detailsRequired": "Angen talu", | ||
| "pendingTransaction": "Mae'n bosibl y gwelwch drafodiad ar y gweill yn eich cyfrif banc ond dim ond pan fyddwch yn cyflwyno'r ffurflen y codir tâl arnoch.", | ||
| "addPaymentDetails": "Ychwanegu manylion talu", | ||
| "cannotTakePayment": "Mae problem ac ni allwn dderbyn taliad. Cysylltwch â ni (manylion yn nhroedyn y ffurflen hon) neu cadwch eich cynnydd a dychwelyd at y ffurflen yn ddiweddarach.", | ||
|
|
@@ -266,6 +267,19 @@ | |
| "uploadedFilesHeading": "Ffeiliau a uwchlwythwyd", | ||
| "filesCount_one": "Uwchlwythwyd [[count]] ffeil", | ||
| "filesCount_other": "Uwchlwythwyd [[count]] ffeil" | ||
| }, | ||
|
|
||
| "characterCount": { | ||
| "_comment": "Note the use of %{count} instead of [[count]]. This is because we are passing to the govuk template, not passing to Joi", | ||
| "underLimit": { | ||
| "one": "Mae gennych %{count} nod ar ôl", | ||
| "other": "Mae gennych %{count} nod ar ôl" | ||
|
Comment on lines
+275
to
+276
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you just check the syntax for this? I notice in line 268 we use |
||
| }, | ||
| "atLimit": "Mae gennych 0 nod ar ôl", | ||
| "overLimit": { | ||
| "one": "Mae gennych %{count} nod yn ormod", | ||
| "other": "Mae gennych %{count} nod yn ormod" | ||
|
Comment on lines
+280
to
+281
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as above |
||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it
NageorNa? Or evenNaddo? Google Translate saysNaforYes/Noand my favourite AI reckons it's context sensitive as to which of the three it might be 😂There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, Alex asked his AI and the generic Yes/No was the options I've coded. It can change depending on context, hence the temporary fixed solution for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gemini tells me:
Welsh is famous for not having a single, universal word for "yes" or "no" because it usually repeats the verb used in the question. However, if you just need a generic, "catch-all" option for a quick message that people will understand, here is the best way to do it:
The Generic Option
Yes = Ie (pronounced ee-eh)
No = Nage (pronounced nah-geh, with a hard 'g')