在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):crowdin/crowdin-cli开源软件地址(OpenSource Url):https://github.com/crowdin/crowdin-cli开源编程语言(OpenSource Language):Java 99.5%开源软件介绍(OpenSource Introduction):Crowdin CLICrowdin CLI is a command line tool that allows you to manage and synchronize your localization resources with your Crowdin project. Using CLI, you can:
This is a cross-platform and it runs in a terminal on Linux based and macOS operating systems or in Command Prompt on Windows. Table of Contents
Features
InstallationRequirementsCheck if you have Java 8 or newer installed. Type For example, java version "1.8.0_212" means that you have Java 8 Update 212 installed. Homebrew for macOSTo install the Crowdin CLI with homebrew (the package manager for macOS):brew tap crowdin/crowdin brew install crowdin@3 WindowsDownload and run installer for Windows. DebianWe sign all our packages with the Crowdin Signing Key. Download and install the public signing key: wget -qO - https://artifacts.crowdin.com/repo/GPG-KEY-crowdin | sudo apt-key add - Using the following command, create the crowdin.list file in the /etc/apt/sources.list.d directory: echo "deb https://artifacts.crowdin.com/repo/deb/ /" > /etc/apt/sources.list.d/crowdin.list And your repository is ready for use. You can install the Crowdin CLI Debian package with: sudo apt-get update && sudo apt-get install crowdin3 To install the Crowdin CLI manually: wget https://artifacts.crowdin.com/repo/deb/crowdin3.deb -O crowdin.deb sudo dpkg -i crowdin.deb RPMWe sign all our packages with the Crowdin Signing Key. Download and install the public signing key: rpm --import https://artifacts.crowdin.com/repo/GPG-KEY-crowdin Installing from the RPM repository Create a file called crowdin.repo in the /etc/yum.repos.d directory containing: /etc/yum.repos.d/crowdin.repo: [crowdin]
name=Crowdin repository
baseurl=https://artifacts.crowdin.com/repo/rpm
gpgcheck=1
gpgkey=https://artifacts.crowdin.com/repo/GPG-KEY-crowdin
enabled=1 And your repository is ready for use. You can now install Crowdin CLI with one of the following commands: sudo yum install crowdin3 sudo dnf install crowdin3 To install the Crowdin CLI manually: wget https://artifacts.crowdin.com/repo/rpm/crowdin3.rpm -O crowdin.rpm sudo rpm -U crowdin3.rpm Arch LinuxVisit the Crowdin CLI package page on Arch Linux user repository. NPMnpm i -g @crowdin/cli Dockerdocker pull crowdin/cli Standalone VersionCrowdin CLI can be installed as a stand-alone Java application. Download for MacOS, Linux and Windows Installation on Linux and macOS
Installation on Windows
RunningUse the following method to run the app: crowdin Alternative method: java -jar crowdin-cli.jar ConfigurationCrowdin CLI uses a YAML configuration file that contains a description of the resources to manage: files to be uploaded into Crowdin and the locations of the corresponding translations. To use Crowdin CLI, you should first generate your configuration file and then run the tool. By default, Crowdin CLI looks for a configuration file named crowdin.yaml or crowdin.yml (so you don’t have to specify the file name unless it’s different from crowdin.yaml). To create the configuration file run the following command: crowdin init When calling Crowdin CLI in terminal make sure you are in your project root directory. Otherwise, you need to specify a configuration file path using crowdin upload sources --config /path/to/your/config/file Sample configuration file: "project_id": "12"
"api_token": "54e01--your-personal-token--2724a"
"base_path": "."
"base_url": "https://api.crowdin.com" # https://{organization-name}.crowdin.com
"preserve_hierarchy": true
"files": [
{
"source" : "/resources/**/*",
"translation" : "/%two_letters_code%/%original_file_name%"
}
] |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论