Merge pull request 'vois-je le bout du tunnel ?' (#11) from color into master

Reviewed-on: #11
This commit is contained in:
Esenjin_Asakha 2024-02-03 11:45:49 +00:00
commit 776f8a2844

View File

@ -126,52 +126,49 @@ if (!translations.composer) {
translations.composer = {}; translations.composer = {};
} }
translations.composer.underline_button_title = settings.underline_button; // Define default values for buttons
translations.composer.underline_text = const defaultButtons = {
settings.underline_text; underline_button: "Souligner",
underline_text: "Texte",
translations.composer.align_center_button_title = settings.align_center_button; strikethrough_button: "Barrer",
translations.composer.align_center_text = strikethrough_text: "Texte",
settings.align_center_text;
translations.composer.align_justify_button_title = settings.align_justify_button; superscript_button: "Exposant",
translations.composer.align_justify_text = superscript_text: "Texte",
settings.align_justify_text;
translations.composer.strikethrough_button_title = settings.strikethrough_button; subscript_button: "Indice",
translations.composer.strikethrough_text = subscript_text: "Texte",
settings.strikethrough_text;
translations.composer.superscript_button_title = settings.superscript_button; align_center_button: "Centrer",
translations.composer.superscript_text = align_center_text: "Texte",
settings.superscript_text;
translations.composer.subscript_button_title = settings.subscript_button; align_justify_button: "Justifier",
translations.composer.subscript_text = align_justify_text: "Texte",
settings.subscript_text;
translations.composer.bleu_color_button_title = settings.bleu_color_button.default; bleu_color_button: "Colorer en bleu",
translations.composer.bleu_color_text = bleu_color_text: "Texte",
settings.bleu_color_text;
translations.composer.rose_color_button_title = settings.rose_color_button.default; rose_color_button: "Colorer en rose",
translations.composer.rose_color_text = rose_color_text: "Texte",
settings.rose_color_text;
translations.composer.jaune_color_button_title = settings.jaune_color_button.default; jaune_color_button: "Colorer en jaune",
translations.composer.jaune_color_text = jaune_color_text: "Texte",
settings.jaune_color_text;
translations.composer.orange_color_button_title = settings.orange_color_button.default; orangecolor_button: "Colorer en orange",
translations.composer.orange_color_text = orangecolor_text: "Texte",
settings.orange_color_text;
translations.composer.rouge_color_button_title = settings.rouge_color_button.default; rouge_color_button: "Colorer en rouge",
translations.composer.rouge_color_text = rouge_color_text: "Texte",
settings.rouge_color_text;
translations.composer.vert_color_button_title = settings.vert_color_button.default; vert_color_button: "Colorer en vert",
translations.composer.vert_color_text = vert_color_text: "Texte"
settings.vert_color_text; };
// Assign default values if translations are not present
Object.keys(defaultButtons).forEach(key => {
translations.composer[key + "_title"] = settings[key] ? settings[key].default : defaultButtons[key];
translations.composer[key + "_text"] = settings[key + "_text"] ? settings[key + "_text"].default : defaultButtons[key];
});
</script> </script>