Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(options/mfa): double colons in warning
Elian Doranf743cfc35c70
diff --git a/src/public/app/widgets/type_widgets/options/multi_factor_authentication.ts b/src/public/app/widgets/type_widgets/options/multi_factor_authentication.tsindex 105258a16a..7d7389c066 100644--- a/src/public/app/widgets/type_widgets/options/multi_factor_authentication.ts+++ b/src/public/app/widgets/type_widgets/options/multi_factor_authentication.ts@@ -317,8 +317,8 @@ export default class MultiFactorAuthenticationOptions extends OptionsWidget {this.$oauthWarning.show();if (result.missingVars && result.missingVars.length > 0) {this.$missingVars.show();- const missingVarsList = result.missingVars.map(v => `"${v}"`).join(", ");- this.$missingVars.html(`${t("multi_factor_authentication.oauth_missing_vars")}: ${missingVarsList}`);+ const missingVarsList = result.missingVars.map(v => `"${v}"`);+ this.$missingVars.html(t("multi_factor_authentication.oauth_missing_vars", { variables: missingVarsList.join(", ") }));}}});diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.jsonindex dd2b256af5..a807c2bfcd 100644--- a/src/public/translations/cn/translation.json+++ b/src/public/translations/cn/translation.json@@ -1325,7 +1325,7 @@"oauth_title": "OAuth/OpenID 认证","oauth_description": "OpenID 是一种标准化方式,允许您使用其他服务(如 Google)的账户登录网站,以验证您的身份。请参阅这些 <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">指南</a> 通过 Google 设置 OpenID 服务。","oauth_description_warning": "要启用 OAuth/OpenID,您需要设置 config.ini 文件中的 OAuth/OpenID 基础 URL、客户端 ID 和客户端密钥,并重新启动应用程序。",- "oauth_missing_vars": "缺少变量:",+ "oauth_missing_vars": "缺少变量: {{missingVars}}","oauth_user_account": "用户账号:","oauth_user_email": "用户邮箱:","oauth_user_not_logged_in": "未登录!"diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.jsonindex 7d9d3fe21f..d6c1df9f15 100644--- a/src/public/translations/en/translation.json+++ b/src/public/translations/en/translation.json@@ -1336,7 +1336,7 @@"oauth_title": "OAuth/OpenID","oauth_description": "OpenID is a standardized way to let you log into websites using an account from another service, like Google, to verify your identity. Follow these <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">instructions</a> to setup an OpenID service through google.","oauth_description_warning": "To enable OAuth/OpenID, you need to set the OAuth/OpenID base URL, client ID and client secret in the config.ini file and restart the application.",- "oauth_missing_vars": "Missing variables: ",+ "oauth_missing_vars": "Missing variables: {{variables}}","oauth_user_account": "User Account: ","oauth_user_email": "User Email: ","oauth_user_not_logged_in": "Not logged in!"