vue-routes-i18n-generator
Simple utility function that helps to handle multiple language routes through some aliases.
Installation
$ npm install vue-rotues-i18n-generator
Usage
const DEFAULT_LOCALE = 'en' const routes = paths: '/it' '/en' '/fr' '/de' name: 'homepage' component: Homepage paths: '/it/contatti' '/en/contacts' '/fr/contacts' '/de/kontakte' name: 'contacts' component: Contacts ;
test
npm run test