From a7295b001fef6e9e16bdf42284ab15397b2107f2 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 21 Aug 2019 14:29:22 -0400 Subject: [PATCH] I18n trending fix #2759 --- src/ui/component/claimListDiscover/view.jsx | 2 +- src/ui/i18n/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/component/claimListDiscover/view.jsx b/src/ui/component/claimListDiscover/view.jsx index ec50daa1f..713d9feaf 100644 --- a/src/ui/component/claimListDiscover/view.jsx +++ b/src/ui/component/claimListDiscover/view.jsx @@ -186,7 +186,7 @@ function ClaimListDiscover(props: Props) { > {SEARCH_TYPES.map(type => ( ))} diff --git a/src/ui/i18n/index.js b/src/ui/i18n/index.js index 83b614eda..bcfffda57 100644 --- a/src/ui/i18n/index.js +++ b/src/ui/i18n/index.js @@ -2,8 +2,10 @@ import y18n from 'y18n'; import path from 'path'; +const isProduction = process.env.NODE_ENV === 'production'; + const i18n = y18n({ - directory: path.join(__dirname, `locales`), + directory: path.join(isProduction ? __dirname : __static, `locales`), updateFiles: true, locale: 'en', });