Skip to content

Instantly share code, notes, and snippets.

@msjavan
Created January 29, 2020 07:39
Show Gist options
  • Save msjavan/4336cad64d7dba39da955a412e48d75d to your computer and use it in GitHub Desktop.
Save msjavan/4336cad64d7dba39da955a412e48d75d to your computer and use it in GitHub Desktop.
It seems that locale function not working in this location:
const state = (bus, core, proc, win) => ({
path: '',
status: '',
history: [],
historyIndex: -1,
minimalistic: false,
mountview: listView.state({
class: 'osjs-gui-fill',
columns: ['Name'],
hideColumns: true,
rows: getMountpoints(core)
}),
fileview: listView.state({
columns: [{
label: _('LBL_FILE'), <=== NOT WORKING
style: {
minWidth: '20em'
}
}, {
label: 'Type',
style: {
maxWidth: '150px'
}
}, {
label: 'Size',
style: {
flex: '0 0 7em',
textAlign: 'right'
}
}]
})
});
@msjavan
Copy link
Author

msjavan commented Jan 29, 2020

Exception when launching FileManager2 ReferenceError: "_ is not defined"
state index.js:165
createApplication index.js:314
js index.js:598
renderCallback windows.js:133
render window.js:504
js index.js:598
create packages.js:282
_launch packages.js:318

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment