Does useTranslate function in vue support multiple namespaces? #2696
-
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? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.