| 16 | locale = 'en' |
| 17 | |
| 18 | constructor() { |
| 19 | this.overlay = new bootstrap.Modal('#fileOpProgress', { backdrop : 'static', keyboard : false }) |
| 20 | |
| 21 | window.resolve_IPC.receive('resolve:shortname', (key) => { this.gotData(key) }) |
| 22 | |
| 23 | window.operations.receive('select:all', MA.fileOpCheckAll) |
| 24 | window.operations.receive('select:none', MA.fileOpCheckNone) |
| 25 | window.operations.receive('select:invert', MA.fileOpCheckInv) |
| 26 | |
| 27 | window.i18n.lang().then((newLocale) => this.locale = newLocale) |
| 28 | } |
| 29 | |
| 30 | doL10N(item) { |
| 31 | let returnText = item?.[this.locale] |