Using v1? Try stable v2. See Migration Guide for details.
Supports installation via standalone scripts and Node.js package managers.
See Installation for details.
By default, po2mo
will convert any created, modified, or staged .po files found in the local Git repository.
You can change the current working directory with the --cwd
option.
Usage: po2mo [options]
Options:
<path> specify input path
-v, --version output the version number
-h, --help output usage information
-o, --output <path> specify output path
-r, --recursive convert po files recursively
--config <path> specify config file path
--cwd <cwd> specify current working directory
See Providing Input for details.
See Providing Output for details.
Sometimes you need to specify the current working directory. Send it!
We recommend you to be config-free, but most of the time there are edge cases where you need a work-around.
po2mo
supports configuration for multiple tasks by providing the path to config file named po2mo.json
with the option --config
.
Each objects inside the tasks
array are equal to a single conversion task, which takes the three values: input
, output
, recursive
.
{
"tasks": [
{
"input": "./locale/a.po"
},
{
"input": "./locale",
"output": "./output"
},
{
"input": "./locale",
"output": "./output",
"recursive": true
}
]
}