Skip to content

Commit

Permalink
Added locale codes to columns
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalFlow authored May 26, 2023
1 parent cddc2d4 commit d293fe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/Translator/TranslationHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@

var editable = config.lockedLanguages && config.lockedLanguages.indexOf(language) !== -1 ? null : { type: 'text' };

grid.addColumn({ field: language, caption: locale.language || language, size: columnWidth + "%", sortable: true, editable: editable });
grid.addSearch({ field: language, caption: locale.language || language, type: 'text' });
grid.addColumn({ field: language, caption: `${locale.language || language} (${locale.code})`, size: columnWidth + "%", sortable: true, editable: editable });
grid.addSearch({ field: language, caption: `${locale.language || language} (${locale.code})`, type: 'text' });

if (config.hideLanguagesByDefault && language !== userSettings.uilanguageid) {
grid.hideColumn(language);
Expand Down

0 comments on commit d293fe3

Please sign in to comment.