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

Don't rely on Vue.prototype.t and properly extract all strings #2229

Merged
merged 2 commits into from
Sep 13, 2021

Conversation

raimund-schluessler
Copy link
Contributor

@raimund-schluessler raimund-schluessler commented Sep 10, 2021

This removes the necessity to bind window.t to Vue.prototype.t. This makes using the components a bit less error prone on first usage and cleans up the Vue instance. The Netlify build still looks fine and e.g. the Calendar app works well.

We should furthermore not use this.t(...) (i.e. the l10n mixin) as it breaks the l10n extraction. The mixin is fine if we need t for the template though.

Closes #586.

Signed-off-by: Raimund Schlüßler <[email protected]>
@raimund-schluessler raimund-schluessler marked this pull request as ready for review September 10, 2021 20:33
@raimund-schluessler raimund-schluessler added 3. to review Waiting for reviews configuration Pull requests that update a config file l10n Localization technical debt labels Sep 10, 2021
@raimund-schluessler raimund-schluessler added this to the 4.1.1 milestone Sep 10, 2021
@raimund-schluessler raimund-schluessler changed the title Don't rely on Vue.prototype.t Don't rely on Vue.prototype.t and properly extract all strings Sep 11, 2021
Copy link
Contributor

@juliushaertl juliushaertl left a comment

Choose a reason for hiding this comment

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

🎉

@juliushaertl juliushaertl merged commit 16cf329 into master Sep 13, 2021
@juliushaertl juliushaertl deleted the fix/586/translate branch September 13, 2021 07:33
@raimund-schluessler
Copy link
Contributor Author

/backport to stable4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews configuration Pull requests that update a config file l10n Localization technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Components rely on translate beeing bound to Vue.prototype.t
3 participants