🚧 WIP: add i18n ing

This commit is contained in:
PiEgg
2022-01-10 10:20:56 +08:00
parent 04701d4202
commit c2991dde2f
8 changed files with 120 additions and 51 deletions
+18
View File
@@ -0,0 +1,18 @@
// TODO: so how to import pure esm module in electron main process????? help wanted
// just copy the fix-path because I can't import pure ESM module in electron main process
const shellPath = require('shell-path')
export default function fixPath () {
if (process.platform === 'win32') {
return
}
process.env.PATH = shellPath.sync() || [
'./node_modules/.bin',
'/.nodebrew/current/bin',
'/usr/local/bin',
process.env.PATH
].join(':')
}