Follow those simple steps to propose a new language for the CLI UI!
-
Run
navigator.languages
ornavigator.language
to get the language code for the new locale. For example:'fr'
. -
Search NPM to see if a package called
vue-cli-locale-<language code>
doesn't already exist. If it does, please contribute to it by submitting PRs! If you don't find any, create a new package calledvue-cli-locale-<language code>
. For example:vue-cli-locale-fr
-
Put the locale JSON file in a
locales
folder and give it the name of the language code. For example:locales/fr.json
-
In the
package.json
file, set theunpkg
field to the path to the locale file. For example:"unpkg": "./locales/fr.json"
-
Publish the package on NPM.
The English reference locale is here.
Take a look at the french localization package as an example.
So should I make a Chinese one or Evan will do that lol?