0👍
Make a directory starting with underscore saying _lang and put your pages there.
- pages
- _lang
- Home.vue
- About.vue
- _lang
Then use page validation to only accept country codes
const country_codes = [ 'en', 'fa']
export default {
validate({ params }) {
return (params.lang in country_codes)
}
}
Source:stackexchange.com