diff --git a/src/public/app/widgets/type_widgets/options/etapi.ts b/src/public/app/widgets/type_widgets/options/etapi.ts index 151314fae..36a37cc27 100644 --- a/src/public/app/widgets/type_widgets/options/etapi.ts +++ b/src/public/app/widgets/type_widgets/options/etapi.ts @@ -10,7 +10,13 @@ const TPL = `

${t("etapi.title")}

${t("etapi.description")}
- ${t("etapi.see_more")} ${t("etapi.wiki")} ${t("etapi.and")} ${t("etapi.openapi_spec")}.

+ ${t("etapi.see_more", { + link_to_wiki: `${t("etapi.wiki")}`, + // TODO: We use window.open src/public/app/services/link.ts -> prevents regular click behavior on "a" element here because it's a relative path + link_to_openapi_spec: `${t("etapi.openapi_spec")}`, + link_to_swagger_ui: `${t("etapi.swagger_ui")}` + })} +

diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.json index 61bccbe77..0910413d4 100644 --- a/src/public/translations/cn/translation.json +++ b/src/public/translations/cn/translation.json @@ -1221,10 +1221,10 @@ "etapi": { "title": "ETAPI", "description": "ETAPI 是一个 REST API,用于以编程方式访问 Trilium 实例,而无需 UI。", - "see_more": "更多详情见", + "see_more": "", "wiki": "维基", - "and": "和", "openapi_spec": "ETAPI OpenAPI 规范", + "swagger_ui": "", "create_token": "创建新的 ETAPI 令牌", "existing_tokens": "现有令牌", "no_tokens_yet": "目前还没有令牌。点击上面的按钮创建一个。", diff --git a/src/public/translations/de/translation.json b/src/public/translations/de/translation.json index daf823696..c486e6871 100644 --- a/src/public/translations/de/translation.json +++ b/src/public/translations/de/translation.json @@ -1248,10 +1248,10 @@ "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}} oder der {{- link_to_swagger_ui }} gefunden werden.", "wiki": "Wiki", - "and": "und", "openapi_spec": "ETAPI OpenAPI-Spezifikation", + "swagger_ui": "ETAPI Swagger UI", "create_token": "Erstelle ein neues ETAPI-Token", "existing_tokens": "Vorhandene Token", "no_tokens_yet": "Es sind noch keine Token vorhanden. Klicke auf die Schaltfläche oben, um eine zu erstellen.", diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json index 6f9a47a2d..b334f03f3 100644 --- a/src/public/translations/en/translation.json +++ b/src/public/translations/en/translation.json @@ -1252,10 +1252,10 @@ "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}} or the {{- link_to_swagger_ui }}.", "wiki": "wiki", - "and": "and", "openapi_spec": "ETAPI OpenAPI spec", + "swagger_ui": "ETAPI Swagger UI", "create_token": "Create new ETAPI token", "existing_tokens": "Existing tokens", "no_tokens_yet": "There are no tokens yet. Click on the button above to create one.", diff --git a/src/public/translations/es/translation.json b/src/public/translations/es/translation.json index f8327f774..b3f5e0e33 100644 --- a/src/public/translations/es/translation.json +++ b/src/public/translations/es/translation.json @@ -1245,10 +1245,10 @@ "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", + "swagger_ui": "", "create_token": "Crear nuevo token ETAPI", "existing_tokens": "Tokens existentes", "no_tokens_yet": "Aún no hay tokens. Dé clic en el botón de arriba para crear uno.", diff --git a/src/public/translations/fr/translation.json b/src/public/translations/fr/translation.json index 8eac639f7..ee8bf1411 100644 --- a/src/public/translations/fr/translation.json +++ b/src/public/translations/fr/translation.json @@ -1252,10 +1252,10 @@ "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", + "swagger_ui": "", "create_token": "Créer un nouveau jeton ETAPI", "existing_tokens": "Jetons existants", "no_tokens_yet": "Il n'y a pas encore de jetons. Cliquez sur le bouton ci-dessus pour en créer un.", diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.json index 0837320e5..9393f76db 100644 --- a/src/public/translations/ro/translation.json +++ b/src/public/translations/ro/translation.json @@ -479,7 +479,6 @@ }, "etapi": { "actions": "Acțiuni", - "and": "și", "create_token": "Crează un token ETAPI nou", "created": "Creat", "default_token_name": "token nou", @@ -492,10 +491,11 @@ "new_token_title": "Token ETAPI nou", "no_tokens_yet": "Nu există încă token-uri. Clic pe butonul de deasupra pentru a crea una.", "openapi_spec": "Specificația OpenAPI pentru ETAPI", + "swagger_ui": "UI-ul Swagger pentru ETAPI", "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": "Vedeți mai multe detalii în {{- link_to_wiki}} și în {{- link_to_openapi_spec}} sau în {{- link_to_swagger_ui }}.", "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", diff --git a/src/public/translations/tw/translation.json b/src/public/translations/tw/translation.json index ae8381b5b..d49d43772 100644 --- a/src/public/translations/tw/translation.json +++ b/src/public/translations/tw/translation.json @@ -1199,10 +1199,10 @@ "etapi": { "title": "ETAPI", "description": "ETAPI 是一個 REST API,用於以編程方式訪問 Trilium 實例,而無需 UI。", - "see_more": "更多詳情見", + "see_more": "", "wiki": "維基", - "and": "和", "openapi_spec": "ETAPI OpenAPI 規範", + "swagger_ui": "", "create_token": "新增新的 ETAPI 令牌", "existing_tokens": "現有令牌", "no_tokens_yet": "目前還沒有令牌。點擊上面的按鈕新增一個。",