Skip to content

Commit

Permalink
chore(localizations): Replace empty strings with undefined (#4151)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcarpenter authored Sep 11, 2024
1 parent de1ba10 commit ace56ba
Show file tree
Hide file tree
Showing 36 changed files with 781 additions and 776 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-cooks-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/localizations": patch
---

Replace empty strings with undefined to ensure localizations fallback to `en-US` properly.
46 changes: 23 additions & 23 deletions packages/localizations/src/ar-SA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,20 @@ export const arSA: LocalizationResource = {
formFieldHintText__optional: 'إختياري',
formFieldHintText__slug:
'(slug) هو معرف يمكن قراءته بواسطة الإنسان ويجب أن يكون فريدًا. غالبًا ما يتم استخدامه في الروابط الإلكترونية.',
formFieldInputPlaceholder__backupCode: '',
formFieldInputPlaceholder__backupCode: undefined,
formFieldInputPlaceholder__confirmDeletionUserAccount: 'حذف الحساب',
formFieldInputPlaceholder__emailAddress: '',
formFieldInputPlaceholder__emailAddress_username: '',
formFieldInputPlaceholder__emailAddress: undefined,
formFieldInputPlaceholder__emailAddress_username: undefined,
formFieldInputPlaceholder__emailAddresses: 'أدخل أو لصق عنوان بريد إلكتروني واحد أو أكثر ، مفصولة بمسافات أو فواصل',
formFieldInputPlaceholder__firstName: '',
formFieldInputPlaceholder__lastName: '',
formFieldInputPlaceholder__organizationDomain: '',
formFieldInputPlaceholder__organizationDomainEmailAddress: '',
formFieldInputPlaceholder__organizationName: '',
formFieldInputPlaceholder__organizationSlug: '',
formFieldInputPlaceholder__password: '',
formFieldInputPlaceholder__phoneNumber: '',
formFieldInputPlaceholder__username: '',
formFieldInputPlaceholder__firstName: undefined,
formFieldInputPlaceholder__lastName: undefined,
formFieldInputPlaceholder__organizationDomain: undefined,
formFieldInputPlaceholder__organizationDomainEmailAddress: undefined,
formFieldInputPlaceholder__organizationName: undefined,
formFieldInputPlaceholder__organizationSlug: undefined,
formFieldInputPlaceholder__password: undefined,
formFieldInputPlaceholder__phoneNumber: undefined,
formFieldInputPlaceholder__username: undefined,
formFieldLabel__automaticInvitations: 'تمكين الدعوة الأوتماتكية لهذا النطاق',
formFieldLabel__backupCode: 'الرمز الأحتياطي',
formFieldLabel__confirmDeletion: 'تأكيد',
Expand Down Expand Up @@ -186,7 +186,7 @@ export const arSA: LocalizationResource = {
action__invite: 'دعوة',
activeMembersTab: {
menuAction__remove: 'إزالة عضو',
tableHeader__actions: '',
tableHeader__actions: undefined,
tableHeader__joined: 'انضم',
tableHeader__role: 'دور',
tableHeader__user: 'مستخدم',
Expand Down Expand Up @@ -526,31 +526,31 @@ export const arSA: LocalizationResource = {
'لا يمكن تسجيل الحساب بسبب مشاكل تحقق أمنية. الرجاء تحديث الصفحة للمحاولة مرة أخرى أو تواصل معنا للمزيد من المساعدة',
captcha_unavailable:
'التسجيل غير ناجح بسبب فشل التحقق من صحة الروبوت. يُرجى تحديث الصفحة للمحاولة مرة أخرى أو التواصل مع فريق الدعم للحصول على مزيد من المساعدة',
form_code_incorrect: '',
form_identifier_exists: '',
form_code_incorrect: undefined,
form_identifier_exists: undefined,
form_identifier_exists__email_address: 'تم إستخدام البريد الإلكتروني هذا. يرجى المحاولة مرة أخرى',
form_identifier_exists__phone_number: 'تم إستخدام رقم الهاتف هذا. يرجى المحاولة مرة أخرى',
form_identifier_exists__username: 'تم إستخدام اسم المستخدمد هذا. يرجى المحاولة مرة أخرى',
form_identifier_not_found: '',
form_param_format_invalid: '',
form_identifier_not_found: undefined,
form_param_format_invalid: undefined,
form_param_format_invalid__email_address: 'يجب أستعمال بريد إلكتروني صالح',
form_param_format_invalid__phone_number: 'Phone number must be in a valid international format',
form_param_max_length_exceeded__first_name: 'الأسم الأول يجب الا يتجاوز 256 حرف',
form_param_max_length_exceeded__last_name: 'الأسم الأخير يجب الا يتجاوز 256 حرف',
form_param_max_length_exceeded__name: 'الأسم يجب الا يتجاوز 256 حرف',
form_param_nil: '',
form_password_incorrect: '',
form_password_length_too_short: '',
form_param_nil: undefined,
form_password_incorrect: undefined,
form_password_length_too_short: undefined,
form_password_not_strong_enough: 'كلمة المرور ليست قوية',
form_password_pwned: 'لا يمكن أستعمال كلمة السر هذه لانها غير أمنة, الرجاء اختيار كلمة مرور أخرى',
form_password_pwned__sign_in: 'لا يمكن أستعمال كلمة السر هذه لانها غير أمنة, الرجاء اختيار كلمة مرور أخرى',
form_password_size_in_bytes_exceeded:
'تجاوزت كلمة المرور الحد الأقصى للحروف المدخلة, الرجاء أدخال كلمة مرور أقصر أو حذف بعض الأحرف الخاصة',
form_password_validation_failed: 'كلمة مرور خاطئة',
form_username_invalid_character: '',
form_username_invalid_length: '',
form_username_invalid_character: undefined,
form_username_invalid_length: undefined,
identification_deletion_failed: 'لا يمكن حذف هويتك الآخيرة ',
not_allowed_access: '',
not_allowed_access: undefined,
organization_domain_blocked: undefined,
organization_domain_common: undefined,
organization_membership_quota_exceeded: undefined,
Expand Down
48 changes: 24 additions & 24 deletions packages/localizations/src/bg-BG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,20 @@ export const bgBG: LocalizationResource = {
formFieldError__verificationLinkExpired: 'Линкът за потвърждение е изтекъл. Моля, заявете нов линк.',
formFieldHintText__optional: 'По избор',
formFieldHintText__slug: 'Slug е четим идентификатор, който трябва да бъде уникален. Често се използва в URL адреси.',
formFieldInputPlaceholder__backupCode: '',
formFieldInputPlaceholder__backupCode: undefined,
formFieldInputPlaceholder__confirmDeletionUserAccount: 'Изтрий акаунта',
formFieldInputPlaceholder__emailAddress: '',
formFieldInputPlaceholder__emailAddress_username: '',
formFieldInputPlaceholder__emailAddress: undefined,
formFieldInputPlaceholder__emailAddress_username: undefined,
formFieldInputPlaceholder__emailAddresses: '[email protected], [email protected]',
formFieldInputPlaceholder__firstName: '',
formFieldInputPlaceholder__lastName: '',
formFieldInputPlaceholder__organizationDomain: '',
formFieldInputPlaceholder__organizationDomainEmailAddress: '',
formFieldInputPlaceholder__organizationName: '',
formFieldInputPlaceholder__organizationSlug: '',
formFieldInputPlaceholder__password: '',
formFieldInputPlaceholder__phoneNumber: '',
formFieldInputPlaceholder__username: '',
formFieldInputPlaceholder__firstName: undefined,
formFieldInputPlaceholder__lastName: undefined,
formFieldInputPlaceholder__organizationDomain: undefined,
formFieldInputPlaceholder__organizationDomainEmailAddress: undefined,
formFieldInputPlaceholder__organizationName: undefined,
formFieldInputPlaceholder__organizationSlug: undefined,
formFieldInputPlaceholder__password: undefined,
formFieldInputPlaceholder__phoneNumber: undefined,
formFieldInputPlaceholder__username: undefined,
formFieldLabel__automaticInvitations: 'Включи автоматични покани за този домейн',
formFieldLabel__backupCode: 'Резервен код',
formFieldLabel__confirmDeletion: 'Потвърждение',
Expand Down Expand Up @@ -186,7 +186,7 @@ export const bgBG: LocalizationResource = {
action__invite: 'Покани',
activeMembersTab: {
menuAction__remove: 'Премахване на член',
tableHeader__actions: '',
tableHeader__actions: undefined,
tableHeader__joined: 'Присъединил се',
tableHeader__role: 'Роля',
tableHeader__user: 'Потребител',
Expand Down Expand Up @@ -270,7 +270,7 @@ export const bgBG: LocalizationResource = {
headerTitle__general: 'General',
headerTitle__members: 'Членове',
profileSection: {
primaryButton: '',
primaryButton: undefined,
title: 'Organization Profile',
uploadAction__title: 'Logo',
},
Expand Down Expand Up @@ -527,31 +527,31 @@ export const bgBG: LocalizationResource = {
'Регистрацията неуспешна поради неуспешни проверки за сигурност. Моля, презаредете страницата, за да опитате отново, или се свържете с поддръжката за повече помощ.',
captcha_unavailable:
'Регистрацията неуспешна поради неуспешна валидация на бот. Моля, презаредете страницата, за да опитате отново, или се свържете с поддръжката за повече помощ.',
form_code_incorrect: '',
form_identifier_exists: '',
form_code_incorrect: undefined,
form_identifier_exists: undefined,
form_identifier_exists__email_address: undefined,
form_identifier_exists__phone_number: undefined,
form_identifier_exists__username: undefined,
form_identifier_not_found: '',
form_param_format_invalid: '',
form_identifier_not_found: undefined,
form_param_format_invalid: undefined,
form_param_format_invalid__email_address: 'Имейл адресът трябва да бъде във валиден имейл адрес.',
form_param_format_invalid__phone_number: 'Телефонният номер трябва да бъде във валиден международен формат',
form_param_max_length_exceeded__first_name: 'Първото име не трябва да надвишава 256 символа.',
form_param_max_length_exceeded__last_name: 'Фамилията не трябва да надвишава 256 символа.',
form_param_max_length_exceeded__name: 'Името не трябва да надвишава 256 символа.',
form_param_nil: '',
form_password_incorrect: '',
form_password_length_too_short: '',
form_param_nil: undefined,
form_password_incorrect: undefined,
form_password_length_too_short: undefined,
form_password_not_strong_enough: 'Вашата парола не е достатъчно сигурна.',
form_password_pwned: 'Тази парола е част от изтекли данни и не може да се използва. Моля, опитайте с друга парола.',
form_password_pwned__sign_in: undefined,
form_password_size_in_bytes_exceeded:
'Паролата ви надвиши максималния брой байтове, позволен, моля, я скратете или премахнете някои специални знаци.',
form_password_validation_failed: 'Неправилна парола',
form_username_invalid_character: '',
form_username_invalid_length: '',
form_username_invalid_character: undefined,
form_username_invalid_length: undefined,
identification_deletion_failed: 'Не можете да изтриете последната си идентификация.',
not_allowed_access: '',
not_allowed_access: undefined,
organization_domain_blocked: undefined,
organization_domain_common: undefined,
organization_membership_quota_exceeded: undefined,
Expand Down
44 changes: 22 additions & 22 deletions packages/localizations/src/ca-ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@ export const caES: LocalizationResource = {
formFieldError__verificationLinkExpired: "L'enllaç de verificació ha caducat. Si us plau, sol·licita un nou enllaç.",
formFieldHintText__optional: 'Opcional',
formFieldHintText__slug: "Un slug és un ID llegible per humans que ha de ser únic. Sovint s'utilitza en URL.",
formFieldInputPlaceholder__backupCode: '',
formFieldInputPlaceholder__backupCode: undefined,
formFieldInputPlaceholder__confirmDeletionUserAccount: 'Eliminar compte',
formFieldInputPlaceholder__emailAddress: '',
formFieldInputPlaceholder__emailAddress_username: '',
formFieldInputPlaceholder__emailAddress: undefined,
formFieldInputPlaceholder__emailAddress_username: undefined,
formFieldInputPlaceholder__emailAddresses: '[email protected], [email protected]',
formFieldInputPlaceholder__firstName: '',
formFieldInputPlaceholder__lastName: '',
formFieldInputPlaceholder__organizationDomain: '',
formFieldInputPlaceholder__organizationDomainEmailAddress: '',
formFieldInputPlaceholder__organizationName: '',
formFieldInputPlaceholder__firstName: undefined,
formFieldInputPlaceholder__lastName: undefined,
formFieldInputPlaceholder__organizationDomain: undefined,
formFieldInputPlaceholder__organizationDomainEmailAddress: undefined,
formFieldInputPlaceholder__organizationName: undefined,
formFieldInputPlaceholder__organizationSlug: 'la-meva-org',
formFieldInputPlaceholder__password: '',
formFieldInputPlaceholder__phoneNumber: '',
formFieldInputPlaceholder__username: '',
formFieldInputPlaceholder__password: undefined,
formFieldInputPlaceholder__phoneNumber: undefined,
formFieldInputPlaceholder__username: undefined,
formFieldLabel__automaticInvitations: 'Activa invitacions automàtiques per a aquest domini',
formFieldLabel__backupCode: 'Codi de seguretat',
formFieldLabel__confirmDeletion: 'Confirmació',
Expand Down Expand Up @@ -129,7 +129,7 @@ export const caES: LocalizationResource = {
action__invite: 'Convida',
activeMembersTab: {
menuAction__remove: 'Elimina membre',
tableHeader__actions: '',
tableHeader__actions: undefined,
tableHeader__joined: 'Unit',
tableHeader__role: 'Rol',
tableHeader__user: 'Usuari',
Expand Down Expand Up @@ -449,28 +449,28 @@ export const caES: LocalizationResource = {
"El registre no ha estat exitós a causa de validacions de seguretat fallides. Si us plau, actualitza la pàgina per tornar-ho a intentar o posa't en contacte amb el suport per obtenir més assistència.",
captcha_unavailable:
"El registre no ha estat exitós a causa de la validació fallida de bot. Si us plau, actualitza la pàgina per tornar-ho a intentar o posa't en contacte amb el suport per obtenir més assistència.",
form_code_incorrect: '',
form_identifier_exists: '',
form_identifier_not_found: '',
form_param_format_invalid: '',
form_code_incorrect: undefined,
form_identifier_exists: undefined,
form_identifier_not_found: undefined,
form_param_format_invalid: undefined,
form_param_format_invalid__email_address: "L'adreça de correu electrònic ha de ser una adreça vàlida.",
form_param_format_invalid__phone_number: 'El número de telèfon ha de tenir un format internacional vàlid',
form_param_max_length_exceeded__first_name: 'El nom no ha de superar els 256 caràcters.',
form_param_max_length_exceeded__last_name: 'Els cognoms no han de superar els 256 caràcters.',
form_param_max_length_exceeded__name: 'El nom no ha de superar els 256 caràcters.',
form_param_nil: '',
form_password_incorrect: '',
form_password_length_too_short: '',
form_param_nil: undefined,
form_password_incorrect: undefined,
form_password_length_too_short: undefined,
form_password_not_strong_enough: 'La teva contrasenya no és prou forta.',
form_password_pwned:
'Aquesta contrasenya ha aparegut en una filtració i no es pot utilitzar, si us plau, prova una altra contrasenya.',
form_password_size_in_bytes_exceeded:
'La teva contrasenya ha superat el nombre màxim de bytes permesos, si us plau, redueix-la o elimina alguns caràcters especials.',
form_password_validation_failed: 'Contrasenya incorrecta',
form_username_invalid_character: '',
form_username_invalid_length: '',
form_username_invalid_character: undefined,
form_username_invalid_length: undefined,
identification_deletion_failed: 'No pots eliminar la teva última identificació.',
not_allowed_access: '',
not_allowed_access: undefined,
passwordComplexity: {
maximumLength: 'menys de {{length}} caràcters',
minimumLength: '{{length}} o més caràcters',
Expand Down
Loading

0 comments on commit ace56ba

Please sign in to comment.