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

Add support for hot reloading #71

Merged
merged 4 commits into from
Oct 28, 2016
Merged

Add support for hot reloading #71

merged 4 commits into from
Oct 28, 2016

Conversation

gglnx
Copy link
Contributor

@gglnx gglnx commented Oct 19, 2016

Thank you for your project! It's really helped me. ❤️

In development it's annoying to lose the application state after a reload for an updated translation. This PR fixes that by moving the locales into the language VM.

I also included an example for the documentation for enabling hot reloading of translation.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 91.514% when pulling bbce580 on gglnx:dev into 328bffc on kazupon:dev.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 91.514% when pulling bbce580 on gglnx:dev into 328bffc on kazupon:dev.

Copy link
Owner

@kazupon kazupon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for you PR.
I checked your codes.

Great!! 👍
I believe that this features useful in development as with Vuex hot reloading.

All unit tests of this changing is passed. ✅
In sauce labs e2e, failed error, but no worries due to sauce labs setting issues. 😛

However, Seemingly I could not find the hot reloading test cases.
I hope that you add the these test cases. 😉

```javascript
// Support hot updates
if (module.hot) {
module.hot.accept(['./en', './cn'], () => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please adjust the indent 2 spaces level.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it :)

@gglnx
Copy link
Contributor Author

gglnx commented Oct 27, 2016

Added also a test for hot reloading.

Copy link
Owner

@kazupon kazupon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Thanks!

@kazupon kazupon merged commit 7bb94ac into kazupon:dev Oct 28, 2016
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

Successfully merging this pull request may close these issues.

3 participants