← 全部工具

@intlify/cli

热度 65 更新于 开发与构建

CLI Tooling for i18n development

npmauto-collected

安装

npm
npm install -g @intlify/cli

通过 npm 安装。

🧰 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: