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