Nuxt.js internationalization (i18n) the same directory multiple routing stepped pit remember


Demand : The default _feed access the root directory of language, other languages visit _lang routing
problem : the default language routing /:feed/:pageand other languages routing /:lang/:feedpatterns, resulting in the match is only one match
(think of the current approach) solution : remove the default access language, all routes are put under _lang as follows:

Guess you like

Origin www.cnblogs.com/reboot777/p/11305527.html