Compare commits
2 Commits
0955e2cfc3
...
b0aa329c42
Author | SHA1 | Date | |
---|---|---|---|
b0aa329c42 | |||
ad39caa27a |
@ -146,6 +146,7 @@ const defaultButtons = {
|
|||||||
align_justify_button: "Justifier",
|
align_justify_button: "Justifier",
|
||||||
align_justify_text: "Texte",
|
align_justify_text: "Texte",
|
||||||
|
|
||||||
|
// Définissez les boutons de couleur avec un traitement spécial
|
||||||
bleu_color_button: "Colorer en bleu",
|
bleu_color_button: "Colorer en bleu",
|
||||||
bleu_color_text: "Texte",
|
bleu_color_text: "Texte",
|
||||||
|
|
||||||
@ -167,9 +168,9 @@ const defaultButtons = {
|
|||||||
|
|
||||||
// Assign default values if translations are not present
|
// Assign default values if translations are not present
|
||||||
Object.keys(defaultButtons).forEach(key => {
|
Object.keys(defaultButtons).forEach(key => {
|
||||||
translations.composer[key + "_title"] = settings[key] && settings[key].default ? settings[key].default : defaultButtons[key];
|
const settingKey = key.replace("_button", "").replace("_text", "");
|
||||||
|
translations.composer[key + "_title"] = settings[settingKey] && settings[settingKey].default ? settings[settingKey].default : defaultButtons[key];
|
||||||
translations.composer[key + "_text"] = settings[key + "_text"] && settings[key + "_text"].default ? settings[key + "_text"].default : defaultButtons[key];
|
translations.composer[key + "_text"] = settings[key + "_text"] && settings[key + "_text"].default ? settings[key + "_text"].default : defaultButtons[key];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user