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

Messages won't update if used inside a slot #60

Closed
hdahlheim opened this issue Jun 5, 2020 · 0 comments · Fixed by #63
Closed

Messages won't update if used inside a slot #60

hdahlheim opened this issue Jun 5, 2020 · 0 comments · Fixed by #63
Labels
Type: Bug Bug or Bug fixes

Comments

@hdahlheim
Copy link

Messages won't update, if the language changes, as soon as they are rendered inside of a component slot. This happens with both APIs. When using the i18n-t component, a warning will appear in the console, but the behavior is the same as the function call, the message won't update.

Console warning:

 [vue-i18n] Not found parent composer. use the global composer.

vue & vue-i18n version

  • vue: 3.0.0-beta.14
  • vue-i18n: 9.0.0-alpha.10

Reproduction Link

Legacy global scope example updated with slot
https://gist.github.com/hdahlheim/cc3f74474f8040bbe7d68cd29fb7f639

Steps to reproduce

Place any $t()/t() calls or i18n-t components inside the slot of a custom component and change the language.

What is Expected?

The message inside of the slot updates.

What is actually happening?

The message stays the same as on the first render.

@kazupon kazupon added the Type: Bug Bug or Bug fixes label Jun 7, 2020
kazupon added a commit that referenced this issue Jun 14, 2020
kazupon added a commit that referenced this issue Jun 14, 2020
* fix: message update in slot

closes #60

* fix: remove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants