Skip to content

Commit f7710bf

Browse files
committed
Update translations and button text references across multiple languages
- Added 'submit' button text translations for Hindi, Japanese, Portuguese (BR & PT), Sinhala, Tamil, and Telugu. - Updated button text keys in the code to reflect the new structure for organization management and submission actions. - Ensured consistency in button text references for actions like cancel, manage, and load more across various components.
1 parent a75cf2c commit f7710bf

File tree

18 files changed

+251
-141
lines changed

18 files changed

+251
-141
lines changed

packages/i18n/src/models/i18n.ts

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export interface I18nTranslations {
2727
'elements.buttons.signin.text': string;
2828
'elements.buttons.signout.text': string;
2929
'elements.buttons.signup.text': string;
30+
'elements.buttons.submit.text': string;
3031
'elements.buttons.facebook.text': string;
3132
'elements.buttons.google.text': string;
3233
'elements.buttons.github.text': string;
@@ -40,11 +41,20 @@ export interface I18nTranslations {
4041
/* Fields */
4142
'elements.fields.generic.placeholder': string;
4243
'elements.fields.username.label': string;
44+
'elements.fields.username.placeholder': string;
4345
'elements.fields.password.label': string;
46+
'elements.fields.password.placeholder': string;
47+
'elements.fields.first_name.label': string;
48+
'elements.fields.first_name.placeholder': string;
49+
'elements.fields.last_name.label': string;
50+
'elements.fields.last_name.placeholder': string;
51+
'elements.fields.email.label': string;
52+
'elements.fields.email.placeholder': string;
4453
'elements.fields.organization.name.label': string;
4554
'elements.fields.organization.handle.label': string;
4655
'elements.fields.organization.description.label': string;
4756
'elements.fields.organization.select.label': string;
57+
'elements.fields.organization.select.placeholder': string;
4858

4959
/* Validation */
5060
'validations.required.field.error': string;
@@ -64,25 +74,25 @@ export interface I18nTranslations {
6474
/* Email OTP */
6575
'email.otp.heading': string;
6676
'email.otp.subheading': string;
67-
'email.otp.submit.button.text': string;
77+
'email.otp.buttons.submit.text': string;
6878

6979
/* Identifier First */
7080
'identifier.first.heading': string;
7181
'identifier.first.subheading': string;
72-
'identifier.first.submit.button.text': string;
82+
'identifier.first.buttons.submit.text': string;
7383

7484
/* SMS OTP */
7585
'sms.otp.heading': string;
7686
'sms.otp.subheading': string;
77-
'sms.otp.submit.button.text': string;
87+
'sms.otp.buttons.submit.text': string;
7888

7989
/* TOTP */
8090
'totp.heading': string;
8191
'totp.subheading': string;
82-
'totp.submit.button.text': string;
92+
'totp.buttons.submit.text': string;
8393

8494
/* Username Password */
85-
'username.password.submit.button.text': string;
95+
'username.password.buttons.submit.text': string;
8696
'username.password.heading': string;
8797
'username.password.subheading': string;
8898

@@ -103,14 +113,14 @@ export interface I18nTranslations {
103113
'organization.switcher.member': string;
104114
'organization.switcher.create.organization': string;
105115
'organization.switcher.manage.organizations': string;
106-
'organization.switcher.manage.button.text': string;
116+
'organization.switcher.buttons.manage.text': string;
107117
'organization.switcher.organizations.heading': string;
108-
'organization.switcher.switch.button.text': string;
118+
'organization.switcher.buttons.switch.text': string;
109119
'organization.switcher.no.access': string;
110120
'organization.switcher.status.label': string;
111121
'organization.switcher.showing.count': string;
112-
'organization.switcher.refresh.button.text': string;
113-
'organization.switcher.load_more.button.text': string;
122+
'organization.switcher.buttons.refresh.text': string;
123+
'organization.switcher.buttons.load_more.text': string;
114124
'organization.switcher.loading.more': string;
115125
'organization.switcher.no.organizations': string;
116126
'organization.switcher.error.prefix': string;
@@ -123,9 +133,9 @@ export interface I18nTranslations {
123133
/* |---------------------------------------------------------------| */
124134

125135
'organization.create.heading': string;
126-
'organization.create.button.text': string;
127-
'organization.create.button.loading.text': string;
128-
'organization.create.cancel.button.text': string;
136+
'organization.create.buttons.create_organization.text': string;
137+
'organization.create.buttons.create_organization.loading.text': string;
138+
'organization.create.buttons.cancel.text': string;
129139

130140
/* |---------------------------------------------------------------| */
131141
/* | Messages | */

packages/i18n/src/translations/en-US.ts

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const translations: I18nTranslations = {
3030
'elements.buttons.signin.text': 'Sign In',
3131
'elements.buttons.signout.text': 'Sign Out',
3232
'elements.buttons.signup.text': 'Sign Up',
33+
'elements.buttons.submit.text': 'Continue',
3334
'elements.buttons.facebook.text': 'Continue with Facebook',
3435
'elements.buttons.google.text': 'Continue with Google',
3536
'elements.buttons.github.text': 'Continue with GitHub',
@@ -43,11 +44,20 @@ const translations: I18nTranslations = {
4344
/* Fields */
4445
'elements.fields.generic.placeholder': 'Enter your {field}',
4546
'elements.fields.username.label': 'Username',
47+
'elements.fields.username.placeholder': 'Enter your username',
4648
'elements.fields.password.label': 'Password',
49+
'elements.fields.password.placeholder': 'Enter your password',
50+
'elements.fields.first_name.label': 'First Name',
51+
'elements.fields.first_name.placeholder': 'Enter your first name',
52+
'elements.fields.last_name.label': 'Last Name',
53+
'elements.fields.last_name.placeholder': 'Enter your last name',
54+
'elements.fields.email.label': 'Email',
55+
'elements.fields.email.placeholder': 'Enter your email',
4756
'elements.fields.organization.name.label': 'Organization Name',
4857
'elements.fields.organization.handle.label': 'Organization Handle',
4958
'elements.fields.organization.description.label': 'Organization Description',
5059
'elements.fields.organization.select.label': 'Select Organization',
60+
'elements.fields.organization.select.placeholder': 'Choose an organization',
5161

5262
/* Validation */
5363
'validations.required.field.error': 'This field is required',
@@ -67,27 +77,27 @@ const translations: I18nTranslations = {
6777
/* Email OTP */
6878
'email.otp.heading': 'OTP Verification',
6979
'email.otp.subheading': 'Enter the code sent to your email address.',
70-
'email.otp.submit.button.text': 'Continue',
80+
'email.otp.buttons.submit.text': 'Continue',
7181

7282
/* Identifier First */
7383
'identifier.first.heading': 'Sign In',
7484
'identifier.first.subheading': 'Enter your username or email address.',
75-
'identifier.first.submit.button.text': 'Continue',
85+
'identifier.first.buttons.submit.text': 'Continue',
7686

7787
/* SMS OTP */
7888
'sms.otp.heading': 'OTP Verification',
7989
'sms.otp.subheading': 'Enter the code sent to your phone number.',
80-
'sms.otp.submit.button.text': 'Continue',
90+
'sms.otp.buttons.submit.text': 'Continue',
8191

8292
/* TOTP */
8393
'totp.heading': 'Verify Your Identity',
8494
'totp.subheading': 'Enter the code from your authenticator app.',
85-
'totp.submit.button.text': 'Continue',
95+
'totp.buttons.submit.text': 'Continue',
8696

8797
/* Username Password */
8898
'username.password.heading': 'Sign In',
8999
'username.password.subheading': 'Enter your username and password to continue.',
90-
'username.password.submit.button.text': 'Continue',
100+
'username.password.buttons.submit.text': 'Continue',
91101

92102
/* |---------------------------------------------------------------| */
93103
/* | User Profile | */
@@ -106,14 +116,14 @@ const translations: I18nTranslations = {
106116
'organization.switcher.member': 'member',
107117
'organization.switcher.create.organization': 'Create Organization',
108118
'organization.switcher.manage.organizations': 'Manage Organizations',
109-
'organization.switcher.manage.button.text': 'Manage',
119+
'organization.switcher.buttons.manage.text': 'Manage',
110120
'organization.switcher.organizations.heading': 'Organizations',
111-
'organization.switcher.switch.button.text': 'Switch',
121+
'organization.switcher.buttons.switch.text': 'Switch',
112122
'organization.switcher.no.access': 'No Access',
113123
'organization.switcher.status.label': 'Status:',
114124
'organization.switcher.showing.count': 'Showing {showing} of {total} organizations',
115-
'organization.switcher.refresh.button.text': 'Refresh',
116-
'organization.switcher.load_more.button.text': 'Load More Organizations',
125+
'organization.switcher.buttons.refresh.text': 'Refresh',
126+
'organization.switcher.buttons.load_more.text': 'Load More Organizations',
117127
'organization.switcher.loading.more': 'Loading...',
118128
'organization.switcher.no.organizations': 'No organizations found',
119129
'organization.switcher.error.prefix': 'Error:',
@@ -123,9 +133,9 @@ const translations: I18nTranslations = {
123133
'organization.profile.error': 'Failed to load organization',
124134

125135
'organization.create.heading': 'Create Organization',
126-
'organization.create.button.text': 'Create Organization',
127-
'organization.create.button.loading.text': 'Creating...',
128-
'organization.create.cancel.button.text': 'Cancel',
136+
'organization.create.buttons.create_organization.text': 'Create Organization',
137+
'organization.create.buttons.create_organization.loading.text': 'Creating...',
138+
'organization.create.buttons.cancel.text': 'Cancel',
129139

130140
/* |---------------------------------------------------------------| */
131141
/* | Messages | */

packages/i18n/src/translations/fr-FR.ts

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const translations: I18nTranslations = {
3030
'elements.buttons.signin.text': 'Se connecter',
3131
'elements.buttons.signout.text': 'Se déconnecter',
3232
'elements.buttons.signup.text': "S'inscrire",
33+
'elements.buttons.submit.text': 'Continuer',
3334
'elements.buttons.facebook.text': 'Continuer avec Facebook',
3435
'elements.buttons.google.text': 'Continuer avec Google',
3536
'elements.buttons.github.text': 'Continuer avec GitHub',
@@ -43,10 +44,20 @@ const translations: I18nTranslations = {
4344
/* Fields */
4445
'elements.fields.generic.placeholder': 'Entrez votre {field}',
4546
'elements.fields.username.label': "Nom d'utilisateur",
47+
'elements.fields.username.placeholder': "Entrez votre nom d'utilisateur",
4648
'elements.fields.password.label': 'Mot de passe',
49+
'elements.fields.password.placeholder': 'Entrez votre mot de passe',
50+
'elements.fields.first_name.label': 'Prénom',
51+
'elements.fields.first_name.placeholder': 'Entrez votre prénom',
52+
'elements.fields.last_name.label': 'Nom de famille',
53+
'elements.fields.last_name.placeholder': 'Entrez votre nom de famille',
54+
'elements.fields.email.label': 'Email',
55+
'elements.fields.email.placeholder': 'Entrez votre email',
4756
'elements.fields.organization.name.label': "Nom de l'organisation",
4857
'elements.fields.organization.handle.label': "Identifiant de l'organisation",
4958
'elements.fields.organization.description.label': "Description de l'organisation",
59+
'elements.fields.organization.select.label': "Sélectionner l'organisation",
60+
'elements.fields.organization.select.placeholder': 'Choisissez une organisation',
5061

5162
/* Validation */
5263
'validations.required.field.error': 'Ce champ est obligatoire',
@@ -66,25 +77,25 @@ const translations: I18nTranslations = {
6677
/* Email OTP */
6778
'email.otp.heading': 'Vérification OTP',
6879
'email.otp.subheading': 'Entrez le code envoyé à votre adresse e-mail.',
69-
'email.otp.submit.button.text': 'Continuer',
80+
'email.otp.buttons.submit.text': 'Continuer',
7081

7182
/* Identifier First */
7283
'identifier.first.heading': 'Se connecter',
7384
'identifier.first.subheading': "Entrez votre nom d'utilisateur ou votre adresse e-mail.",
74-
'identifier.first.submit.button.text': 'Continuer',
85+
'identifier.first.buttons.submit.text': 'Continuer',
7586

7687
/* SMS OTP */
7788
'sms.otp.heading': 'Vérification OTP',
7889
'sms.otp.subheading': 'Entrez le code envoyé à votre numéro de téléphone.',
79-
'sms.otp.submit.button.text': 'Continuer',
90+
'sms.otp.buttons.submit.text': 'Continuer',
8091

8192
/* TOTP */
8293
'totp.heading': 'Vérifiez votre identité',
8394
'totp.subheading': "Entrez le code de votre application d'authentification.",
84-
'totp.submit.button.text': 'Continuer',
95+
'totp.buttons.submit.text': 'Continuer',
8596

8697
/* Username Password */
87-
'username.password.submit.button.text': 'Continuer',
98+
'username.password.buttons.submit.text': 'Continuer',
8899
'username.password.heading': 'Se connecter',
89100
'username.password.subheading': "Entrez votre nom d'utilisateur et votre mot de passe pour continuer.",
90101

@@ -100,32 +111,32 @@ const translations: I18nTranslations = {
100111
/* | Organization Switcher | */
101112
/* |---------------------------------------------------------------| */
102113

103-
'elements.fields.organization.select.label': "Sélectionner l'organisation",
104114
'organization.switcher.switch.organization': "Changer d'organisation",
105115
'organization.switcher.loading.placeholder.organizations': 'Chargement des organisations...',
106116
'organization.switcher.members': 'membres',
107117
'organization.switcher.member': 'membre',
108118
'organization.switcher.create.organization': 'Créer une organisation',
109119
'organization.switcher.manage.organizations': 'Gérer les organisations',
110-
'organization.switcher.manage.button.text': 'Gérer',
120+
'organization.switcher.buttons.manage.text': 'Gérer',
111121
'organization.switcher.organizations.heading': 'Organisations',
112-
'organization.switcher.switch.button.text': 'Changer',
122+
'organization.switcher.buttons.switch.text': 'Changer',
113123
'organization.switcher.no.access': 'Aucun accès',
114124
'organization.switcher.status.label': 'Statut:',
115125
'organization.switcher.showing.count': 'Affichage de {showing} sur {total} organisations',
116-
'organization.switcher.refresh.button.text': 'Rafraîchir',
117-
'organization.switcher.load_more.button.text': "Charger plus d'organisations",
126+
'organization.switcher.buttons.refresh.text': 'Rafraîchir',
127+
'organization.switcher.buttons.load_more.text': "Charger plus d'organisations",
118128
'organization.switcher.loading.more': 'Chargement...',
119129
'organization.switcher.no.organizations': 'Aucune organisation trouvée',
120130
'organization.switcher.error.prefix': 'Erreur:',
131+
121132
'organization.profile.heading': "Profil de l'organisation",
122133
'organization.profile.loading': "Chargement de l'organisation...",
123134
'organization.profile.error': "Échec du chargement de l'organisation",
124135

125136
'organization.create.heading': 'Créer une organisation',
126-
'organization.create.button.text': 'Créer une organisation',
127-
'organization.create.button.loading.text': 'Création en cours...',
128-
'organization.create.cancel.button.text': 'Annuler',
137+
'organization.create.buttons.create_organization.text': 'Créer une organisation',
138+
'organization.create.buttons.create_organization.loading.text': 'Création en cours...',
139+
'organization.create.buttons.cancel.text': 'Annuler',
129140

130141
/* |---------------------------------------------------------------| */
131142
/* | Messages | */

0 commit comments

Comments
 (0)