fix i18n for prod builds

This commit is contained in:
Jeremy Kauffman 2019-07-10 17:40:47 -04:00
parent b4aa6ddfab
commit 13b8643af2

View file

@ -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',
});