how to access i18n object in a pinia store #15828
-
|
i see that there is a i18n boot file created but how to access it in pinia server side if i import i18n in a the pinia store like this : ok i initialized i18n in setup as the error explained and i pass the i18n object to my pinia action. no error . i print i18n i see all his function.. and the t function but when i use it like this: no error but my_word is not replaced |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
ok , I did not have a clear idea of how to manage the routing and the links. if that can help this is how i did : server side we pass the params to the app and client side we create links with i18n if we want. and we update the url for some actions via our component |
Beta Was this translation helpful? Give feedback.
ok , I did not have a clear idea of how to manage the routing and the links. if that can help this is how i did : server side we pass the params to the app and client side we create links with i18n if we want. and we update the url for some actions via our component