From 9c945eae92770a993007619a21a38e7f810e8807 Mon Sep 17 00:00:00 2001 From: mahmoud-linkness Date: Tue, 28 Jul 2026 14:54:13 +0200 Subject: [PATCH] feat(i18n): localize components strings --- components/account/default.htm | 2 +- components/authentication/default.htm | 50 +++++++++++++-------------- components/registration/default.htm | 28 +++++++-------- components/resetpassword/default.htm | 24 ++++++------- 4 files changed, 52 insertions(+), 52 deletions(-) diff --git a/components/account/default.htm b/components/account/default.htm index 2340bb27..6fdc64d3 100644 --- a/components/account/default.htm +++ b/components/account/default.htm @@ -1,4 +1,4 @@ {# Placeholder #}
- Please see the documentation for detailed instructions on setting up the account component + {{ 'Please see the documentation for detailed instructions on setting up the account component'|_ }}
diff --git a/components/authentication/default.htm b/components/authentication/default.htm index 1913798f..66288e6e 100644 --- a/components/authentication/default.htm +++ b/components/authentication/default.htm @@ -4,8 +4,8 @@
-

Sign in to your account

-

Enter your email address and password

+

{{ 'Sign in to your account'|_ }}

+

{{ 'Enter your email address and password'|_ }}

{% if __SELF__.showUsernameField %} @@ -16,7 +16,7 @@

Enter your email address and password

class="form-control" id="inputUsername" /> - + {% else %}
@@ -28,7 +28,7 @@

Enter your email address and password

placeholder="name@example.com" oninput="document.getElementById('inputRecoverEmail').value = this.value" /> - +
{% endif %} @@ -40,7 +40,7 @@

Enter your email address and password

id="inputPassword" placeholder="Password" /> - +

- Remembered your password? + {{ 'Remembered your password?'|_ }} - Sign in again + {{ 'Sign in again'|_ }}

@@ -142,7 +142,7 @@

Enter your email address

-

Enter the code found in your authenticator app

+

{{ 'Enter the code found in your authenticator app'|_ }}

@@ -153,25 +153,25 @@

Enter the code found in your authenticator app

id="inputTwoFactorCode" placeholder="name@example.com" /> - +

- Lost device? + {{ 'Lost device'|_ }}? - Use a recovery code + {{ 'Use a recovery code'|_ }}

@@ -182,7 +182,7 @@

Enter the code found in your authenticator app

-

Enter one of your emergency recovery codes

+

{{ 'Enter one of your emergency recovery codes'|_ }}

@@ -193,25 +193,25 @@

Enter one of your emergency recovery codes

id="inputTwoFactorRecoveryCode" placeholder="name@example.com" /> - +

- Found device? + {{ 'Found device'|_ }}? - Use an authentication code + {{ 'Use an authentication code'|_ }}

diff --git a/components/registration/default.htm b/components/registration/default.htm index c4f7767a..2a10000d 100644 --- a/components/registration/default.htm +++ b/components/registration/default.htm @@ -3,8 +3,8 @@ {% if __SELF__.canRegister %}
-

Create a new account

-

Enter your information below

+

{{ 'Create a new account'|_ }}

+

{{ 'Enter your information below'|_ }}

@@ -13,10 +13,10 @@

Enter your information below

type="text" class="form-control" id="inputFirstName" - placeholder="First name" + placeholder="{{ 'First name'|_ }}" autocomplete="given-name" /> - +
@@ -25,10 +25,10 @@

Enter your information below

type="text" class="form-control" id="inputLastName" - placeholder="Last name" + placeholder="{{ 'Last name'|_ }}" autocomplete="family-name" /> - +
@@ -37,10 +37,10 @@

Enter your information below

type="email" class="form-control" id="inputEmail" - placeholder="Email address" + placeholder="{{ 'Email address'|_ }}" autocomplete="email" /> - +
@@ -49,28 +49,28 @@

Enter your information below

type="password" class="form-control" id="inputPassword" - placeholder="Password" + placeholder="{{ 'Password'|_ }}" autocomplete="new-password" /> - +
{% else %}
-

Create a new account

-

Registrations are currently disabled

+

{{ 'Create a new account'|_ }}

+

{{ 'Registrations are currently disabled'|_ }}

{% endif %}

- Already have an account? Sign in here + {{ 'Already have an account?'|_ }} {{ 'Sign in here'|_ }}

diff --git a/components/resetpassword/default.htm b/components/resetpassword/default.htm index f712c95c..ba545602 100644 --- a/components/resetpassword/default.htm +++ b/components/resetpassword/default.htm @@ -19,13 +19,13 @@
{% if __SELF__.hasInvite %} -

Welcome!

+

{{ 'Welcome'|_ }}!

{% elseif __SELF__.hasToken %} -

Reset password

+

{{ 'Reset password'|_ }}

{% else %} -

Change password

+

{{ 'Change password'|_ }}

{% endif %} -

Enter a new password.

+

{{ 'Enter a new password.'|_ }}

{% if __SELF__.hasToken %} @@ -38,9 +38,9 @@

Enter a new password.

type="password" class="form-control" id="inputCurrentPassword" - placeholder="Current Password" + placeholder="{{ 'Current Password'|_ }}" /> - + {% endif %} @@ -50,10 +50,10 @@

Enter a new password.

type="password" class="form-control" id="inputPassword" - placeholder="Password" + placeholder="{{ 'Password'|_ }}" autocomplete="new-password" /> - +
@@ -62,10 +62,10 @@

Enter a new password.

type="password" class="form-control" id="inputPasswordConfirmation" - placeholder="Confirm Password" + placeholder="{{ 'Confirm Password'|_ }}" autocomplete="new-password" /> - +