Some questions about internationalization in vue

see that the forums are all using vue-i18n
to start their own projects with their own ideas and do not use these plug-ins
I use session to store language information into the page to determine the value of lang in session, and then introduce the language pack
do you want to ask if it is necessary to change to i18n?
what are the shortcomings of my approach?

Mar.01,2021

it's easier to use vue-i18n.
there are some jobs that you don't have to do by yourself.


vue-i18n belongs to some functional methods based on vue encapsulating
, but your simple requirement does not need to be changed.
as for the problem, it may lead to data loss (accidental restart) and waste of resources (memory)

Menu