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

Refactor i18n Plugin Usage #679

Open
rak-phillip opened this issue Apr 15, 2024 · 0 comments
Open

Refactor i18n Plugin Usage #679

rak-phillip opened this issue Apr 15, 2024 · 0 comments
Assignees
Labels
dependencies Pull requests that update a dependency file kind/tech-debt
Milestone

Comments

@rak-phillip
Copy link
Member

rancher/dashboard#10801 deprecates the existing method for installing the i18n plugin.

Where we would originally load the plugin via import:

// The plugin implicitly installs the plugin and extends Vue via the import
import '@shell/plugins/i18n';

We now explicitly install the plugin via Vue.use():

import i18n from '@shell/plugins/i18n';

// The plugin is explicitly loaded by the consumer, providing a Vue instance
Vue.use(i18n);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file kind/tech-debt
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants