Skip to content

Commit

Permalink
fix(translation): add new UNFREEZE_COLUMNS to fix translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Nov 17, 2021
1 parent 22ed231 commit 0010861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/common/src/extensions/gridMenuExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0010861

Please sign in to comment.