-
Notifications
You must be signed in to change notification settings - Fork 22
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
Troubleshooting docs, Q&A, cache issues, etc. #240
Comments
That all sounds right, good job! There is a bunch of stuff that is configured only when Meteor loads though, so you'll have to restart it. Before doing that, make sure to delete / move (as a backup) your (Another potential alternative could be do delete all mf* Collections and do the change in the |
I had actually tried both approaches before creating the issue, but neither had worked. I did restart Meteor (many times). I've just tried the mfAll.js approach again, and I still get the same problem - changing the locale using in So could there be something that I've missed that also needs to be changed? |
Mmm. I think this might be a caching issue then. You can check by typing In case that still doesn't work, is there a staging site anywhere I can take a look at? Otherwise view-source on your site and check both the injected list of languages and their update times, and the network request that's sent to update the local cache (in local storage). Hope this helps! Let me know. |
I've just cleared all my browsing data from Chrome Browser and it appears that solved my problem. I should have tried that before. I'm feeling silly now. Thank you anyway for your time (and for your great package). |
I'm really happy so many people are still getting so much from a pre-release with little documentation, I wish I had more time to work on this :/ If your site is already live, you might still need to update the |
Yes. That was an annoying one, right? I had the exact same problem last year (except that it was the firefox-cache:). Just saw this one, if only I had waken up earlier... :) |
Feel like this should be covered in the docs :) |
I wanted to change the language code (as seen on the /translate page) because I had realized that the code that I had originally entered was wrong. So I tried to update the following collections:
mfMeta (_id field, by deleting the document and adding a new one with the correct value)
mfRevisions (lang field)
mfStrings (lang field)
The /translate page then showed the correct code and all the translations were intact too.
However
msgfmt.setLocale()
no longer changed the texts, even though the locale does successfully change, verified byconsole.log(msgfmt.locale())
showing the correct value.So how can I properly change the originally entered language code (without having to start over with a new language code and manually enter each translation one by one again)?
The text was updated successfully, but these errors were encountered: