1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-07 06:40:54 +00:00
* Changed: Improve the Translation Tester UI to make it considerably more useful.
* Changed: Load a list of known strings from the server when in Capture Mode so that we can check to see which strings are actually new or changed.
* Fixed: Drop-down menu options in the control center not being assigned localization keys.
* Fixed: Durations not being localized correctly.
* Fixed: i18n name collision for the Ban chat action.
This commit is contained in:
SirStendec 2019-10-06 20:01:22 -04:00
parent 7f0cad4bd4
commit 14e9f10685
15 changed files with 790 additions and 135 deletions

View file

@ -459,6 +459,14 @@ 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) ) {
const i18n_base = `${ui.i18n_key || `setting.entry.${key}`}.values`;
for(const value of ui.data) {
if ( value.i18n_key === undefined && value.value )
value.i18n_key = `${i18n_base}.${value.value}`;
}
}
}
if ( definition.changed )