fixed translations set during module startup - use __t

This commit is contained in:
SPRINX0\prochazka
2025-10-30 10:37:06 +01:00
parent 70284ac440
commit 9884ace309
5 changed files with 23 additions and 10 deletions

View File

@@ -112,8 +112,9 @@ function mapItem(item, commands) {
if (item.command) {
const command = commands[item.command];
if (command) {
const commandText = item.text || command.menuName || command.toolbarName || command.name;
return {
text: item.text || command.menuName || command.toolbarName || command.name,
text: _.isFunction(commandText) ? commandText() : commandText,
keyText: command.keyText || command.keyTextFromGroup || command.disableHandleKeyText,
onClick: () => {
if (command.isGroupCommand) {