Skip to content

Commit

Permalink
add translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Jan 26, 2024
1 parent 01f541a commit d169b38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit d169b38

Please sign in to comment.