From 13b8643af2c6cf015d3db6eebe74e90838955287 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Wed, 10 Jul 2019 17:40:47 -0400 Subject: [PATCH] fix i18n for prod builds --- src/ui/i18n/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/i18n/index.js b/src/ui/i18n/index.js index c61b3541d..374089a6e 100644 --- a/src/ui/i18n/index.js +++ b/src/ui/i18n/index.js @@ -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', });