mirror of
https://github.com/mara-li/obsidian-simple-colored-folder.git
synced 2026-07-22 05:46:20 +00:00
refactor(i18n): some strings was not translated
This commit is contained in:
parent
185ede4bce
commit
ffadfd042e
3 changed files with 5 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue