2022-07-12 19:51:24 +03:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
2022-08-19 22:31:10 +03:00
|
|
|
const { exec } = require('child_process')
|
2022-07-12 19:51:24 +03:00
|
|
|
const isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE)
|
|
|
|
|
|
|
|
if (isWindows) {
|
|
|
|
exec(`type nul > src/locales/en-US.po`)
|
|
|
|
} else {
|
|
|
|
exec(`touch src/locales/en-US.po`)
|
|
|
|
}
|