GitHub - intlify/cli: CLI Tooling for i18n development (original) (raw)
π§° Intlify CLI
CLI Tooling for i18n development
πΏ Installation
npm
npm install -g @intlify/cli
yarn
yarn global add @intlify/cli
yarn
yarn global add @intlify/cli
π Features
- the i18n resources compilation
- the attributes annotation for i18n custom block
- the i18n custom block formatting
π Usage
Usage: intlify <command> [options]
Commands:
intlify compile compile the i18n resources [aliases: cp]
intlify annotate annotate the attributes [aliases: at]
intlify format format for single-file components [aliases: ft]
Options:
--help Show help [boolean]
--version Show version number [boolean]
π Ignoring
For annotate
or format
commands, you can ignore with using .intlifyignore
or --ignore
for files passed at the end of the options or --source
option
.intlifyignore
To exclude files from iles passed at the end of the options or --source
option, create a .itnlifyignore
file in the root of your project. .intlifyignore
uses gitignore syntax.
example:
# Ignore node_modules
node_modules
# ignore artifacts
build
coverage
Itβs recommended to have a .intlifyignore
in your project! This way you can run intlify format βsource /path/to/**/*.vue βtype custom-block
. to make sure that everything is executed (without mangling files you donβt want, or choking on generated files).
--ignore
option
If you can't use .intlifyignore
for some reason and want to specify a different file, you can use the --ignore
option to achieve this.
ignore with .gitignore
intlify format βsource /path/to/**/*.vue βtype custom-block --ignore .gitignore
π€ API
About details, See the API References
π I18n
Intlify cli is supporting for I18n.
If you would like to localiize Intlify CLI, you can contribute i18n resource to locales directory.
π Changelog
Details changes for each release are documented in the CHANGELOG.md.
β Issues
Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.