franchement, je n'y crois plus ...
This commit is contained in:
parent
ad39caa27a
commit
3a3190b6ed
@ -168,7 +168,7 @@ 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 => {
|
||||||
const settingKey = key.replace("_button", "").replace("_text", "");
|
const settingKey = key.replace("_button", "");
|
||||||
translations.composer[key + "_title"] = settings[settingKey] && settings[settingKey].default ? settings[settingKey].default : defaultButtons[key];
|
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];
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user