Configuration
motaword
CLI application looks for .motaword/
directory to configure itself. It looks for configuration in this order:
- Working directory
$HOME/.motaword
/etc/.motaword
We keep 2 files in this directory:
- credentials.json
- config.json
credentials.json
holds your MotaWord API client ID and client secret. This file can be generated via motaword
CLI itself. See Authentication below for more information.
config.json
lets you configure all aspects of your motaword
CLI, and especially tailored for motaword translate
command which is typically used in development and CI/CD environments. You can learn more about translate
command below.
Unless you are using translate
command, config.json
file is optional.
Configuring translation rules
rules
configuration is quite versatile to enable the correct directory structure in many use cases. Refer to https://docs.motaword.com/docs/translating#translation-rules for detailed explanation of translation rule configuration.
Updated about 2 years ago