From 001086165434f619f1e90f664e2185b77fb6a92e Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Wed, 17 Nov 2021 10:07:20 -0500 Subject: [PATCH] fix(translation): add new UNFREEZE_COLUMNS to fix translation --- packages/common/src/extensions/gridMenuExtension.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/common/src/extensions/gridMenuExtension.ts b/packages/common/src/extensions/gridMenuExtension.ts index a9cbc59e8..d3d0e58b3 100644 --- a/packages/common/src/extensions/gridMenuExtension.ts +++ b/packages/common/src/extensions/gridMenuExtension.ts @@ -247,10 +247,11 @@ export class GridMenuExtension implements Extension { if (this.sharedService.gridOptions && this._gridMenuOptions && !this._gridMenuOptions.hideClearFrozenColumnsCommand) { const commandName = 'clear-pinning'; if (!originalCustomItems.some(item => item !== 'divider' && item.hasOwnProperty('command') && item.command === commandName)) { + const translationKey = commandLabels?.clearFrozenColumnsCommandKey ?? 'CLEAR_PINNING'; gridMenuCustomItems.push( { iconCssClass: this._gridMenuOptions.iconClearFrozenColumnsCommand || 'fa fa-times', - title: this.extensionUtility.translateWhenEnabledAndServiceExist(`${translationPrefix}${commandLabels?.clearFrozenColumnsCommandKey}`, 'TEXT_CLEAR_PINNING', commandLabels?.clearFrozenColumnsCommand), + title: this.extensionUtility.translateWhenEnabledAndServiceExist(`${translationPrefix}${translationKey}`, `TEXT_${translationKey}`, commandLabels?.clearFrozenColumnsCommand), disabled: false, command: commandName, positionOrder: 52