Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404: /locales/en-US.json #1489

Open
KES777 opened this issue Oct 9, 2022 · 2 comments
Open

404: /locales/en-US.json #1489

KES777 opened this issue Oct 9, 2022 · 2 comments

Comments

@KES777
Copy link

KES777 commented Oct 9, 2022

I get this error when navigate to /#/upload

image

@tullydwyer
Copy link

I am getting the same issue and the website shows the untranslated strings, not sure why it is not falling back to en?

I am also using REACT_APP_FALLBACK_LANGUAGE=en in yarn build.

image

@tullydwyer
Copy link

I could not find an option or setting to force the en language and fix the untranslated strings.

For anyone having this issue I have a hacky workaround:

You can hardcode it to use the en translations in i18n.tsx.

Change https://github.com/jhaals/yopass/blob/master/website/src/i18n.tsx#L12

loadPath: process.env.PUBLIC_URL + '/locales/{{lng}}.json',

to

loadPath: process.env.PUBLIC_URL + '/locales/en.json',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants