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
Trigger server restart create/delete language settings manager plugin #838
Comments
Yes you are right. It's not an hard issue to fix. I think you can fix it and submit a PR. You have to trigger a server restart after delete language. |
Well, I tried it but it's not enough. strapi.reload(); and it triggers server restart but after refreshing the page, deleted languages are back there. It seems that somehow fs.writeFileSync(filePath, '{}'); BTW: I've found another bug while trying to fix this one. It's about translation labels - I'll issue PR shortly. |
@soupette: could you help me by suggesting what else should be done beyond calling |
Hi @forsetius are you still working on this issue? How can I help you? |
Hi @forsetius. Until we released the fix you can modify this file: Path -
|
Node.js version:
v9.9.0
npm version:
5.6.0
Strapi version:
3.0.0-alpha11.1
Operating system:
Linux Mint 18.3 Cinnamon 64-bit
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Deleting the language in Settings Manager has no long-term effect. It seems to be deleted but after refresh they are there again. Trying to add a language redirects to empty page.
If the current behavior is a bug, please provide the steps to reproduce the problem
In Admin > Settings Manager > Languages:
One by one, I delete all the languages except default (English). After each deletion given language disappears and the console produces messages like:
Wait until server reloads, then refresh the page. The deleted languages are listed again. However, now their locales are
it_it
instead ofit_IT
. Looking into./config/locales
you'll find two sets of files, for exampleit_IT.json
with{"welcome": "Benvenuto"}
inside andit_it.json
with{}
inside.What is the expected behavior?
When server is restarting there should be modal with rotating arrows. In other cases when server reloads it is there but not after deleting a language. Then, if I delete a language it should be deleted and not visible on the list anymore. Also, UI for adding a language should work.
The text was updated successfully, but these errors were encountered: