Compare commits

..

No commits in common. "76d29a0dabe4ef14325147124a2023518b917236" and "b0aa329c42ead5c30b0f65a2ef77ab18539b11c6" have entirely different histories.

View File

@ -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", ""); const settingKey = key.replace("_button", "").replace("_text", "");
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];
}); });