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 9c70be5 commit 22ed231
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/webpack-demo-vanilla-bundle/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"SYNCHRONOUS_RESIZE": "Synchronous resize",
"TOGGLE_FILTER_ROW": "Toggle Filter Row",
"TOGGLE_PRE_HEADER_ROW": "Toggle Pre-Header Row",
"UNFREEZE_COLUMNS": "Unfreeze Columns",
"X_OF_Y_SELECTED": "# of % selected",
"X_OF_Y_MASS_SELECTED": "{{x}} of {{y}} selected",
"BILLING": {
Expand Down Expand Up @@ -94,4 +95,4 @@
"TASK_X": "Task {{x}}",
"TITLE": "Title",
"TRUE": "True"
}
}
3 changes: 2 additions & 1 deletion examples/webpack-demo-vanilla-bundle/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"SYNCHRONOUS_RESIZE": "Redimension synchrone",
"TOGGLE_FILTER_ROW": "Basculer la ligne des filtres",
"TOGGLE_PRE_HEADER_ROW": "Basculer la ligne de pré-en-tête",
"UNFREEZE_COLUMNS": "Dégeler les colonnes",
"X_OF_Y_SELECTED": "# de % sélectionnés",
"X_OF_Y_MASS_SELECTED": "{{x}} de {{y}} sélectionnés",
"BILLING": {
Expand Down Expand Up @@ -95,4 +96,4 @@
"TITLE": "Titre",
"TITLE.NAME": "Nom du Titre",
"TRUE": "Vrai"
}
}
1 change: 1 addition & 0 deletions packages/common/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class Constants {
TEXT_STARTS_WITH: 'Starts With',
TEXT_TOGGLE_FILTER_ROW: 'Toggle Filter Row',
TEXT_TOGGLE_PRE_HEADER_ROW: 'Toggle Pre-Header Row',
TEXT_UNFREEZE_COLUMNS: 'Unfreeze Columns',
TEXT_X_OF_Y_SELECTED: '# of % selected',
TEXT_X_OF_Y_MASS_SELECTED: '{{x}} of {{y}} selected',
};
Expand Down
3 changes: 3 additions & 0 deletions packages/common/src/interfaces/locale.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ export interface Locale {
/** Text "Toggle Pre-Header Row" shown in Grid Menu (when enabled) */
TEXT_TOGGLE_PRE_HEADER_ROW?: string;

/** Text "Unfreeze Columns" shown in Grid Menu, this is an alternative to the text (CLEAR_PINNING: Unfreeze Columns/Rows) */
TEXT_UNFREEZE_COLUMNS?: string;

/** Text "x of y selected" displayed in the Multiple Select Editor/Filter */
TEXT_X_OF_Y_SELECTED: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const SalesforceGlobalGridOptions = {
},
gridMenu: {
commandLabels: {
clearFrozenColumnsCommand: 'Unfreeze Columns',
clearFrozenColumnsCommandKey: 'UNFREEZE_COLUMNS',
},
hideTogglePreHeaderCommand: true,
hideRefreshDatasetCommand: true,
Expand Down

0 comments on commit 22ed231

Please sign in to comment.