Skip to content
This repository was archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
fix(I18N) use default if key thats asked for is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
vegarringdal committed Aug 27, 2017
1 parent c8faa85 commit cd01060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grid/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class Controller {
if (this.attI18N) {
keys.forEach((key: string) => {
if (this.vGrid.filterOperatorTranslationKeys[key]) {
this.vGrid.filterOperatorNames[this.vGrid.filterOperatorTranslationKeys[key]] = this.attI18N(key);
this.vGrid.filterOperatorNames[this.vGrid.filterOperatorTranslationKeys[key]] = this.attI18N(key) || this.vGrid.filterOperatorNames[this.vGrid.filterOperatorTranslationKeys[key]];
}
this.contextMenu.updateMenuStrings(key, this.attI18N(key));
});
Expand Down

0 comments on commit cd01060

Please sign in to comment.