Skip to content

devjiwonchoi/po2mo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

po2mo

🇰🇷 Korean Docs

Using v1? Try stable v2. See Migration Guide for details.

Installation

Supports installation via standalone scripts and Node.js package managers.

See Installation for details.

Default Behavior

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

Providing Input (<path>)

See Providing Input for details.

Providing Output (--output)

See Providing Output for details.

Current Working Directory (--cwd)

Sometimes you need to specify the current working directory. Send it!

Configuration (--config)

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.

po2mo.json

{
  "tasks": [
    {
      "input": "./locale/a.po"
    },
    {
      "input": "./locale",
      "output": "./output"
    },
    {
      "input": "./locale",
      "output": "./output",
      "recursive": true
    }
  ]
}