Skip to content

Locale change in component does not change locale everywhere in app #1016

Closed Answered by kazupon
LouisVA asked this question in Q&A
Discussion options

You must be logged in to vote

userSettingsModal.vue, adminSettingsModal.vue, mainView.vue and routerView use custom block and Composition API?
If so, you need to set inheriteLocale: true in useI18n.

If you are creating an i18n application that uses both local scope and global scope with custom block, you should basically use global scope.
You should then design localization to determine which scope to use for your application's use cases.
In general, the global scope method should be sufficient. This will make it easier to work with the localization service and allow for integration with the localization workflow.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Spirit04eK
Comment options

@LouisVA
Comment options

@LouisVA
Comment options

@LouisVA
Comment options

@parallels999
Comment options

Answer selected by LouisVA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants