mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 06:40:54 +00:00
4.14.5
* 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:
parent
c77d2bdd10
commit
29414beaa0
3 changed files with 6 additions and 4 deletions
|
@ -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}`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue