1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-07 06:40:54 +00:00
* Fixed: Some settings strings not being assigned a localization key.
* Fixed: The right-click profile selector not using description localization keys for the default profiles.
This commit is contained in:
SirStendec 2019-10-14 17:25:59 -04:00
parent c77d2bdd10
commit 29414beaa0
3 changed files with 6 additions and 4 deletions

View file

@ -524,10 +524,10 @@ export default class SettingsManager extends Module {
if ( ! ui.key && ui.title )
ui.key = ui.title.toSnakeCase();
if ( ui.component === 'setting-select-box' && Array.isArray(ui.data) ) {
if ( (ui.component === 'setting-select-box' || ui.component === 'setting-combo-box') && Array.isArray(ui.data) ) {
const i18n_base = `${ui.i18n_key || `setting.entry.${key}`}.values`;
for(const value of ui.data) {
if ( value.i18n_key === undefined && value.value )
if ( value.i18n_key === undefined && value.value !== undefined )
value.i18n_key = `${i18n_base}.${value.value}`;
}
}