Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.
/ msgfmt-action Public archive

A GitHub action for Generate binary message catalog(.mo) from textual translation description(.po).

License

Notifications You must be signed in to change notification settings

whtsky/msgfmt-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msgfmt-action

A GitHub action for Generate binary message catalog(.mo) from textual translation description(.po).

Usage

Feel free to take a look at Example Workflow

By default it generates .mo files for all .po in your project root:

action "Run msgfmt" {
  uses = "whtsky/msgfmt-action@master"
}

You can specify working directory by WORKDIR env:

action "Run msgfmt" {
  uses = "whtsky/msgfmt-action@master"
  env = {
    WORKDIR = "i18n"
  }
}

Or you can pass args to run msgfmt as you wish.

action "Run msgfmt" {
  uses = "whtsky/msgfmt-action@master"
  args = "zh-hans/LC_MESSAGES/lang.po -o zh-hans/LC_MESSAGES/lang.mo"
}

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.