Merge pull request #2759 from lbryio/i18n_trending_fix
I18n trending fix
This commit is contained in:
commit
19697cea25
2 changed files with 4 additions and 2 deletions
|
@ -186,7 +186,7 @@ function ClaimListDiscover(props: Props) {
|
|||
>
|
||||
{SEARCH_TYPES.map(type => (
|
||||
<option key={type} value={type}>
|
||||
{toCapitalCase(type)}
|
||||
{__(toCapitalCase(type))}
|
||||
</option>
|
||||
))}
|
||||
</FormField>
|
||||
|
|
|
@ -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',
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue