Does useTranslate function in vue support multiple namespaces? #2696
Answered
by
stepan662
AlvinWang627
asked this question in
Q&A
|
useTranslate The function call t.value('addFile') correctly fetches the translation from the If I switch the product namespace to be first in the array, like this: product namespace is work, order namespace is not work. Can someone help me ? where is the failure? |
Answered by
stepan662
Nov 14, 2024
Replies: 1 comment 1 reply
|
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 For some reason it's not mentioned in the docs, however it's an intended behavior. I'll fix the docs. |
1 reply
Answer selected by
AlvinWang627
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.