Merge pull request #2759 from lbryio/i18n_trending_fix

I18n trending fix
This commit is contained in:
Sean Yesmunt 2019-08-21 14:30:04 -04:00 committed by GitHub
commit 19697cea25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -186,7 +186,7 @@ function ClaimListDiscover(props: Props) {
>
{SEARCH_TYPES.map(type => (
<option key={type} value={type}>
{toCapitalCase(type)}
{__(toCapitalCase(type))}
</option>
))}
</FormField>

View file

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