fix i18n for prod builds
This commit is contained in:
parent
b4aa6ddfab
commit
13b8643af2
1 changed files with 2 additions and 1 deletions
|
@ -1,8 +1,9 @@
|
|||
// @if TARGET='app'
|
||||
import y18n from 'y18n';
|
||||
import path from 'path';
|
||||
|
||||
const i18n = y18n({
|
||||
directory: `static/locales`.replace(/\\/g, '\\\\'),
|
||||
directory: path.join(__static, `locales`),
|
||||
updateFiles: true,
|
||||
locale: 'en',
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue