I18n trending fix #2759

Merged
kauffj merged 1 commit from i18n_trending_fix into master 2019-08-21 20:30:05 +02:00
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',
});