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

feat: create isolated translation contexts #4

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

sebamarynissen
Copy link
Member

This PR adds the possibility to get isolated scopes with useI18n({ scope: 'isolated' }). This is useful if you want to use @whisthub/vue-i18n in your composables, where you want a separate translation context that is not tied to the component, for example if your composable has separate messages that are different from the component messages.

@sebamarynissen sebamarynissen self-assigned this Jul 10, 2024
@sebamarynissen sebamarynissen merged commit bd2a2fd into main Jul 10, 2024
1 check passed
@sebamarynissen sebamarynissen deleted the feature/multiple-instances branch July 10, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant