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

mergeLocalMessage broken? #1108

Closed
websanova opened this issue Jan 29, 2021 · 2 comments
Closed

mergeLocalMessage broken? #1108

websanova opened this issue Jan 29, 2021 · 2 comments
Labels
help wanted Extra attention is needed Status: PR Welcome Welcome to Pull Request

Comments

@websanova
Copy link

websanova commented Jan 29, 2021

Using merge after some delay does not seem to trigger an update.

Works

Vue.i18n.mergeLocaleMessage('en-US', {test: {one: 'one'}});
Vue.i18n.mergeLocaleMessage('en-US', {test: {two: 'two'}});

Does not work

Vue.i18n.mergeLocaleMessage('en-US', {test: {one: 'one'}});

setTimeout(() => {
    // trying to output {{ $t('test.two') }} does not work it never triggers in this case...
    Vue.i18n.mergeLocaleMessage('en-US', {test: {two: 'two'}});
}, 2000);

Works with "set"...

Vue.i18n.mergeLocaleMessage('en-US', {test: {one: 'one'}});

setTimeout(() => {
    Vue.i18n.setLocaleMessage('en-US', {test: {one: 'one', two: 'two'}});
}, 2000);

EDIT: Not sure if it's related to latest change #1099 ?

@kazupon kazupon added help wanted Extra attention is needed Status: PR Welcome Welcome to Pull Request labels Feb 8, 2021
@phonezawphyo
Copy link
Contributor

I can confirm it is a bug due to #1099 and should be fixed asap.
Added a PR. #1321

Copy link
Owner

kazupon commented Oct 31, 2021

close, as reason, vue-i18n was released.

Thanks

@kazupon kazupon closed this as completed Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed Status: PR Welcome Welcome to Pull Request
Projects
None yet
Development

No branches or pull requests

3 participants