Skip to content
This repository was archived by the owner on Apr 15, 2019. It is now read-only.

Switching language doesn't work in electron wrapper #767

Closed
slaweet opened this issue Sep 25, 2017 · 0 comments
Closed

Switching language doesn't work in electron wrapper #767

slaweet opened this issue Sep 25, 2017 · 0 comments
Assignees

Comments

@slaweet
Copy link
Contributor

slaweet commented Sep 25, 2017

Expected behaviour

Switching language should work in electron wrapper
Ideally, it should be set up to bundle the translations with webpack.
https://github.com/i18next/i18next-xhr-backend#usage-with-webpack

Actual behaviour

Switching language doesn't work in electron wrapper

It cannot load the translations because the translations are referenced with absolute path

file:///locales/de/common.json Failed to load resource:  net::ERR_FILE_NOT_FOUND

Steps to reproduce

Run the native app:

npm run start
@slaweet slaweet self-assigned this Sep 25, 2017
slaweet added a commit that referenced this issue Sep 27, 2017
Fix switching language in Electron - Closes #767
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant