refactor(i18n): some strings was not translated

This commit is contained in:
mara-li 2025-04-30 09:55:07 +02:00
parent 185ede4bce
commit ffadfd042e
3 changed files with 5 additions and 3 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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;