From c3ecd339a1a60cf66054b5c6fa8ec31cfbd8c6cb Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 7 Oct 2024 23:22:52 +0800 Subject: [PATCH] feat: refine i18n for login method selection button (#6771) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /area core /kind improvement /milestone 2.20.x #### What this PR does / why we need it: 完善登录方式选择按钮的 i18n。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/6759 #### Does this PR introduce a user-facing change? ```release-note None ``` --- .../templates/gateway_modules/login_fragments.html | 4 +++- .../templates/gateway_modules/login_fragments.properties | 5 ++++- .../templates/gateway_modules/login_fragments_en.properties | 5 ++++- .../templates/gateway_modules/login_fragments_es.properties | 5 ++++- .../gateway_modules/login_fragments_zh_TW.properties | 6 ++++-- 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/application/src/main/resources/templates/gateway_modules/login_fragments.html b/application/src/main/resources/templates/gateway_modules/login_fragments.html index b9c5299e1..2d6d0f95c 100644 --- a/application/src/main/resources/templates/gateway_modules/login_fragments.html +++ b/application/src/main/resources/templates/gateway_modules/login_fragments.html @@ -10,7 +10,9 @@
  • - +
  • diff --git a/application/src/main/resources/templates/gateway_modules/login_fragments.properties b/application/src/main/resources/templates/gateway_modules/login_fragments.properties index ce89f98a1..a5b4cc3d2 100644 --- a/application/src/main/resources/templates/gateway_modules/login_fragments.properties +++ b/application/src/main/resources/templates/gateway_modules/login_fragments.properties @@ -1,4 +1,7 @@ otherLogin.label=其他登录方式 signup.description=没有账号? signup.link=立即注册 -returnToSite=返回网站 \ No newline at end of file +returnToSite=返回网站 + +# Rule: `formAuthProviders.${provider.metadata.name}.displayName` +formAuthProviders.local.displayName=账号密码登录 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_modules/login_fragments_en.properties b/application/src/main/resources/templates/gateway_modules/login_fragments_en.properties index bb99adf53..39a5fc7b5 100644 --- a/application/src/main/resources/templates/gateway_modules/login_fragments_en.properties +++ b/application/src/main/resources/templates/gateway_modules/login_fragments_en.properties @@ -1,4 +1,7 @@ otherLogin.label=Other Login signup.description=Don't have an account? signup.link=Sign up -returnToSite=Return to site \ No newline at end of file +returnToSite=Return to site + +# Rule: `formAuthProviders.${provider.metadata.name}.displayName` +formAuthProviders.local.displayName=Login with credentials \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_modules/login_fragments_es.properties b/application/src/main/resources/templates/gateway_modules/login_fragments_es.properties index 33fc61f56..a714b589a 100644 --- a/application/src/main/resources/templates/gateway_modules/login_fragments_es.properties +++ b/application/src/main/resources/templates/gateway_modules/login_fragments_es.properties @@ -1,4 +1,7 @@ otherLogin.label=Otras formas de inicio de sesión signup.description=¿No tienes una cuenta? signup.link=Regístrate ahora -returnToSite=Volver al sitio \ No newline at end of file +returnToSite=Volver al sitio + +# Rule: `formAuthProviders.${provider.metadata.name}.displayName` +formAuthProviders.local.displayName=Iniciar sesión con credenciales diff --git a/application/src/main/resources/templates/gateway_modules/login_fragments_zh_TW.properties b/application/src/main/resources/templates/gateway_modules/login_fragments_zh_TW.properties index 7a44090fa..b0e101238 100644 --- a/application/src/main/resources/templates/gateway_modules/login_fragments_zh_TW.properties +++ b/application/src/main/resources/templates/gateway_modules/login_fragments_zh_TW.properties @@ -1,5 +1,7 @@ - otherLogin.label=其他登入方式 signup.description=沒有帳號? signup.link=立即註冊 -returnToSite=返回網站 \ No newline at end of file +returnToSite=返回網站 + +# Rule: `formAuthProviders.${provider.metadata.name}.displayName` +formAuthProviders.local.displayName=帳號密碼登入