Skip to content

Commit 6b6f520

Browse files
committed
Refactor locales: Remove 'Select Option' from grant form translation and use 'global.selectOption'
1 parent c854d3d commit 6b6f520

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

frontend/src/components/grant-form/options.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const OCCUPATION_OPTIONS = [
3232
{
3333
value: "",
3434
disabled: true,
35-
messageId: "grants.form.fields.occupation.values.selectOption",
35+
messageId: "global.selectOption",
3636
},
3737
{
3838
disabled: false,
@@ -65,7 +65,7 @@ export const GRANT_TYPE_OPTIONS = [
6565
{
6666
value: "",
6767
disabled: true,
68-
messageId: "grants.form.fields.grantType.values.selectOption",
68+
messageId: "global.selectOption",
6969
},
7070
{
7171
disabled: false,
@@ -88,7 +88,7 @@ export const AGE_GROUPS_OPTIONS = [
8888
{
8989
value: "" as AgeGroup,
9090
disabled: true,
91-
messageId: "grants.form.fields.ageGroup.values.selectOption",
91+
messageId: "global.selectOption",
9292
},
9393
{
9494
value: AgeGroup.RangeLessThan_10,

frontend/src/locale/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const messages = {
1010
"global.here": "here",
1111
"global.yes": "Yes",
1212
"global.no": "No",
13+
"global.selectOption": "Select Option",
1314
"profile.tickets.size": "Size",
1415
"tickets.productsList.guidedToursTitle": "Guided Tours",
1516
"checkout.billing.businessInvoice": "Do you need an invoice?",
@@ -701,7 +702,6 @@ We look forward to reading about you and hope to see you at PyCon Italia 2024!
701702
"grants.form.fields.ageGroup": "Age group",
702703
"grants.form.fields.ageGroup.description":
703704
"Select your age group. This helps us understand the demographic distribution of our applicants.",
704-
"grants.form.fields.ageGroup.values.selectOption": "Select Option",
705705
"grants.form.fields.ageGroup.values.range_less_than_10":
706706
"10 years old or under",
707707
"grants.form.fields.ageGroup.values.range_11_18": "11 - 18 years old",
@@ -715,7 +715,6 @@ We look forward to reading about you and hope to see you at PyCon Italia 2024!
715715
"grants.form.fields.occupation": "Occupation",
716716
"grants.form.fields.occupation.description":
717717
"Select your current occupation.",
718-
"grants.form.fields.occupation.values.selectOption": "Select Option",
719718
"grants.form.fields.occupation.values.developer": "Developer",
720719
"grants.form.fields.occupation.values.student": "Student",
721720
"grants.form.fields.occupation.values.researcher": "Researcher",
@@ -724,7 +723,6 @@ We look forward to reading about you and hope to see you at PyCon Italia 2024!
724723
"grants.form.fields.grantType": "What type of grant are you applying for?",
725724
"grants.form.fields.grantType.description":
726725
"Note: If you have submitted a talk/workshop proposal, you do not need to apply for a grant to receive a refund. If your proposal is accepted, we will contact you regarding the ticket refund.",
727-
"grants.form.fields.grantType.values.selectOption": "Select Option",
728726
"grants.form.fields.grantType.values.diversity": "Diversity",
729727
"grants.form.fields.grantType.values.unemployed": "Unemployed",
730728
"grants.form.fields.grantType.values.speaker": "Speaker",
@@ -1075,6 +1073,7 @@ The sooner you buy your ticket, the more you save!`,
10751073
"global.somethingWentWrong": "Qualcosa è andato male, prova di nuovo",
10761074
"global.loadMore": "Carica altri",
10771075
"global.tryAgain": "Si è verificato un errore: {error}",
1076+
"global.selectOption": "Seleziona un'opzione",
10781077

10791078
"home.title": "Home",
10801079
"home.deadline.begins": "Inizio",
@@ -1425,7 +1424,6 @@ Non vediamo l'ora di leggere la tua storia e speriamo di vederti a PyCon Italia
14251424
"grants.form.fields.ageGroup": "Fascia d'età",
14261425
"grants.form.fields.ageGroup.description":
14271426
"Seleziona la tua fascia d'età. Questo ci aiuta a comprendere la distribuzione demografica dei nostri candidati.",
1428-
"grants.form.fields.ageGroup.values.selectOption": "Seleziona un'opzione",
14291427
"grants.form.fields.ageGroup.values.range_less_than_10": "meno di 10 anni",
14301428
"grants.form.fields.ageGroup.values.range_11_18": "11 - 18 anni",
14311429
"grants.form.fields.ageGroup.values.range_19_24": "19 - 24 anni",
@@ -1437,7 +1435,6 @@ Non vediamo l'ora di leggere la tua storia e speriamo di vederti a PyCon Italia
14371435
"grants.form.fields.occupation": "Occupazione",
14381436
"grants.form.fields.occupation.description":
14391437
"Seleziona la propria attuale occupazione.",
1440-
"grants.form.fields.occupation.values.selectOption": "Seleziona un'opzione",
14411438
"grants.form.fields.occupation.values.developer":
14421439
"Sviluppatore/Sviluppatrice",
14431440
"grants.form.fields.occupation.values.student": "Studente/Studentessa",
@@ -1447,7 +1444,6 @@ Non vediamo l'ora di leggere la tua storia e speriamo di vederti a PyCon Italia
14471444
"grants.form.fields.grantType": "Che tipo di grant stai richiedendo?",
14481445
"grants.form.fields.grantType.description":
14491446
"Nota: Se hai inviato una proposta di talk/workshop, non è necessario fare domanda per un grant per ricevere un rimborso. Se la tua proposta viene accettata, ti contatteremo riguardo al rimborso del biglietto.",
1450-
"grants.form.fields.grantType.values.selectOption": "Seleziona un'opzione",
14511447
"grants.form.fields.grantType.values.diversity": "Diversity",
14521448
"grants.form.fields.grantType.values.unemployed": "Disoccupato",
14531449
"grants.form.fields.grantType.values.speaker": "Speaker",

0 commit comments

Comments
 (0)