From d169b3872e1c45b0db35d74e56a392d6d64ce680 Mon Sep 17 00:00:00 2001 From: Mara Date: Fri, 26 Jan 2024 20:57:31 +0100 Subject: [PATCH] add translation --- src/i18n/locales/en.json | 3 +++ src/i18n/locales/fr.json | 3 +++ src/settings.ts | 6 +++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index fcac11d1..cf4f3477 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -182,6 +182,9 @@ }, "slugify": { "desc": "Standardize the slug of anchor links (pointing to heading title). Transform the slug into all lower case. Replace space with hyphen. Applicable only for anchor links in markdown link syntax.", + "disable": "Disable", + "lower": "", + "strict": "Convert all to alphanumeric and dashes, including unicode and non latin languages.", "title": "Sluglify anchor in markdown links" }, "title": "Links", diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index 924dd22c..c54e3077 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json @@ -182,6 +182,9 @@ }, "slugify": { "desc": "Normaliser le lien (slug) des liens d'ancrage (pointant vers le titre de la rubrique). Transforme le texte en minuscules. Remplace l'espace par un tiret. Applicable uniquement aux liens d'ancrage dans la syntaxe de lien markdown.", + "disable": "Désactiver", + "lower": "Convertit en minuscules et les espaces en tirets", + "strict": "Convertit tout en alphanumérique et tirets, y compris l'unicode et les langues non latine.", "title": "Slugifier l'ancre des liens markdown" }, "title": "Liens", diff --git a/src/settings.ts b/src/settings.ts index 5d029371..563b647a 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -741,9 +741,9 @@ export class GithubPublisherSettingsTab extends PluginSettingTab { .addDropdown((dropdown) => { dropdown .addOptions({ - disable: "Disable", - strict: "Strict (convert all to alphanumeric and dashes, including unicode and eastern languages)", - lower: "Lower (convert to lowercase and space to dashes)", + disable: i18next.t("settings.conversion.links.slugify.disable"), + strict: i18next.t("settings.conversion.links.slugify.strict"), + lower: i18next.t("settings.conversion.links.slugify.lower"), }) .setValue(slugifySetting) .onChange(async (value) => {