vue-cli-plugin-cobra-router

Vue CLI plugin, Support automatic generation of international routing table and dynamic update of meta information
828 1
Install
npm install vue-cli-plugin-cobra-router
Latest Version:1.1.5
License:MIT
Last Updated:Sep 14, 2020
Links: GitHub  ·  npm
Maintainer: candy-_-

Vue CLI plugin for Router

Features

:watermelon: Support history mode and hash mode

:pushpin: Automatically generate routing and dynamic nested routing based on the file tree of the Vue file in the directory

:doughnut: Custom routing meta information in the component

:hammer: Support asynchronous authentication routing (route guard)

:pizza: Multi-language seamless routing, asynchronous loading of translation

:violin: URL localization

:gun: Support setting the default language (there is no language prefix in the URL)

:meat_on_bone: load the last used language when you visit the website again

:sake: routing jump is simple and convenient

Overview

Ensure you are in a project generated by Vue CLI v3. You install this plugin by running the following command:

# init project
$ vue create hello-world

# enter the catalog
$ cd hello-world

# If you did not install router plugin yet
$ vue add router

# Install vue-cli-plugin-cobra-router
$ vue add cobra-router

After adding the plugin, the file structure will be the below.

src/
├── lang/
├──── locallized-urls/
├──── translations/
├── layouts/
├── pages/
└── router.js

Related Packages

@vue/cli-plugin-router

router plugin for vue-cli

26,202,110 29,510
@blax-software/i18n

Per-page, all-locale translation sources merged into vue-i18n messages, plus a C...

253 0
lang-i18n-loader

javascript i18n loader, combined with vue and other frameworks, configuring the...

7,801
nuxt-i18n-easy

Automated multilingual text translator for Nuxt i18n module

3,027 4
vue-lang

Vue.js i18n language integration

12,913 11

Version History

Version Released License
1.1.5 MIT
1.1.4 MIT
1.1.3 MIT
1.1.2 MIT
1.1.1 MIT