mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
i18n(options/etapi): improve translatability of description string
convert the split up string into a single interpolated string, which improves translatability (and allows LTR translations)
This commit is contained in:
parent
47f84fe4b4
commit
ba84c694b2
@ -10,7 +10,11 @@ const TPL = `
|
||||
<h4>${t("etapi.title")}</h4>
|
||||
|
||||
<p>${t("etapi.description")} <br/>
|
||||
${t("etapi.see_more")} <a class="tn-link" href="https://triliumnext.github.io/Docs/Wiki/etapi.html">${t("etapi.wiki")}</a> ${t("etapi.and")} <a class="tn-link" onclick="window.open('etapi/etapi.openapi.yaml')" href="etapi/etapi.openapi.yaml">${t("etapi.openapi_spec")}</a>.</p>
|
||||
${t("etapi.see_more", {
|
||||
link_to_wiki: `<a class="tn-link" href="https://triliumnext.github.io/Docs/Wiki/etapi.html">${t("etapi.wiki")}</a>`,
|
||||
link_to_openapi_spec: `<a class="tn-link" onclick="window.open('etapi/etapi.openapi.yaml')" href="etapi/etapi.openapi.yaml">${t("etapi.openapi_spec")}</a>`
|
||||
})}
|
||||
</p>
|
||||
|
||||
<button type="button" class="create-etapi-token btn btn-sm">${t("etapi.create_token")}</button>
|
||||
|
||||
|
@ -1221,9 +1221,8 @@
|
||||
"etapi": {
|
||||
"title": "ETAPI",
|
||||
"description": "ETAPI 是一个 REST API,用于以编程方式访问 Trilium 实例,而无需 UI。",
|
||||
"see_more": "更多详情见",
|
||||
"see_more": "",
|
||||
"wiki": "维基",
|
||||
"and": "和",
|
||||
"openapi_spec": "ETAPI OpenAPI 规范",
|
||||
"create_token": "创建新的 ETAPI 令牌",
|
||||
"existing_tokens": "现有令牌",
|
||||
|
@ -1248,9 +1248,8 @@
|
||||
"etapi": {
|
||||
"title": "ETAPI",
|
||||
"description": "ETAPI ist eine REST-API, die für den programmgesteuerten Zugriff auf die Trilium-Instanz ohne Benutzeroberfläche verwendet wird.",
|
||||
"see_more": "Weitere Details findest du unter",
|
||||
"see_more": "Weitere Details können im {{- link_to_wiki}} und in der {{- link_to_openapi_spec}} gefunden werden.",
|
||||
"wiki": "Wiki",
|
||||
"and": "und",
|
||||
"openapi_spec": "ETAPI OpenAPI-Spezifikation",
|
||||
"create_token": "Erstelle ein neues ETAPI-Token",
|
||||
"existing_tokens": "Vorhandene Token",
|
||||
|
@ -1252,9 +1252,8 @@
|
||||
"etapi": {
|
||||
"title": "ETAPI",
|
||||
"description": "ETAPI is a REST API used to access Trilium instance programmatically, without UI.",
|
||||
"see_more": "See more details on",
|
||||
"see_more": "See more details in the {{- link_to_wiki}} and the {{- link_to_openapi_spec}}.",
|
||||
"wiki": "wiki",
|
||||
"and": "and",
|
||||
"openapi_spec": "ETAPI OpenAPI spec",
|
||||
"create_token": "Create new ETAPI token",
|
||||
"existing_tokens": "Existing tokens",
|
||||
|
@ -1245,9 +1245,8 @@
|
||||
"etapi": {
|
||||
"title": "ETAPI",
|
||||
"description": "ETAPI es una REST API que se utiliza para acceder a la instancia de Trilium mediante programación, sin interfaz de usuario.",
|
||||
"see_more": "Ver más detalles sobre",
|
||||
"see_more": "",
|
||||
"wiki": "wiki",
|
||||
"and": "y",
|
||||
"openapi_spec": "Especificación ETAPI OpenAPI",
|
||||
"create_token": "Crear nuevo token ETAPI",
|
||||
"existing_tokens": "Tokens existentes",
|
||||
|
@ -1252,9 +1252,8 @@
|
||||
"etapi": {
|
||||
"title": "ETAPI",
|
||||
"description": "ETAPI est une API REST utilisée pour accéder à l'instance Trilium par programme, sans interface utilisateur.",
|
||||
"see_more": "Voir plus de détails sur",
|
||||
"see_more": "",
|
||||
"wiki": "wiki",
|
||||
"and": "et",
|
||||
"openapi_spec": "Spec ETAPI OpenAPI",
|
||||
"create_token": "Créer un nouveau jeton ETAPI",
|
||||
"existing_tokens": "Jetons existants",
|
||||
|
@ -479,7 +479,6 @@
|
||||
},
|
||||
"etapi": {
|
||||
"actions": "Acțiuni",
|
||||
"and": "și",
|
||||
"create_token": "Crează un token ETAPI nou",
|
||||
"created": "Creat",
|
||||
"default_token_name": "token nou",
|
||||
@ -495,7 +494,7 @@
|
||||
"rename_token": "Redenumește token-ul",
|
||||
"rename_token_message": "Introduceți denumirea noului token",
|
||||
"rename_token_title": "Redenumire token",
|
||||
"see_more": "Mai multe informații pe",
|
||||
"see_more": "",
|
||||
"title": "ETAPI",
|
||||
"token_created_message": "Copiați token-ul creat în clipboard. Trilium stochează token-ul ca hash așadar această valoare poate fi văzută doar acum.",
|
||||
"token_created_title": "Token ETAPI creat",
|
||||
|
Loading…
x
Reference in New Issue
Block a user