diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 7007417..2e3c21f 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -21,6 +21,7 @@ "desc": "Custom CSS template to generate a style from folders. Please use the following variables:", "title": "Custom CSS" }, + "defaultColor": "Defaults colors", "export": { "desc": "Add the plugin style into the exported style snippets.", "title": "Export plugin style" diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index e3b2eb1..1434e08 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json @@ -21,6 +21,7 @@ "desc": "Modèle CSS personnalisé qui sera utilisé pour générer un CSS depuis les dossiers. Merci d'utiliser les variables suivantes : ", "title": "CSS personnalisé" }, + "defaultColor": "Couleurs par défaut", "export": { "desc": "Ajouter les styles du plugin dans le fichier exporté.", "title": "Exporter le style du plugin" diff --git a/src/settings.ts b/src/settings.ts index 8f676ad..a18a9f2 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -61,11 +61,11 @@ export class SimpleColoredFolderSettingTab extends PluginSettingTab { ); } this.containerEl.createEl("hr"); - new Setting(containerEl).setName("Default color").setClass("no-border").setHeading(); + new Setting(containerEl).setName(i18next.t("settings.defaultColor")).setClass("no-border").setHeading(); new PickerSettingsComponent( containerEl, - "Background", + i18next.t("common.background"), this.settings.defaultColors.bg, async (value) => { this.settings.defaultColors.bg.themeLight = value.themeLight; @@ -76,7 +76,7 @@ export class SimpleColoredFolderSettingTab extends PluginSettingTab { ); new PickerSettingsComponent( containerEl, - "Text color", + i18next.t("common.color"), this.settings.defaultColors.color, async (value) => { this.settings.defaultColors.color.themeLight = value.themeLight;