Skip to content

Does useTranslate function in vue support multiple namespaces? #2696

Answered by stepan662
AlvinWang627 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, this is expected behavior, we are using the first namespace listed. If you use more than one the others needs to be referenced by t('addProduct', { ns: 'product' })

For some reason it's not mentioned in the docs, however it's an intended behavior.

I'll fix the docs.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlvinWang627
Comment options

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