* refactor(ui): use fetchPolic: 'cache-and-network' by default * feat(ui): don't display loader if cached data * fix(ui): eslint errors * feat(ui): new top bar design * fix(ui): remove work icon in top bar * fix(ui): logger view item hover background * feat(ui): Projects list show open project * feat(ui): top bar: responsive + no favorites message * fix(ui): Cannot set property consoleLogLast of #<a> which has only a getter * fix(ui): loading prompts folder when installing plugin * feat(ui): help translating button + docs * docs(ui): fix local. docs * fix(ui): Help translate button * docs(ui): plugin ui dev docs improvements * docs(ui): typo * docs(ui): typo * docs(ui): typo * feat(ui): auto locale now tries full code + short code * docs(ui): fix missing ref locale link
1023 B
Localization
Translate the UI
Follow those simple steps to propose a new language for the CLI UI!
-
Run
navigator.languagesornavigator.languageto 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
localesfolder and give it the name of the language code. For example:locales/fr.json -
In the
package.jsonfile, set theunpkgfield 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.