Skip to content

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

saixin983/msgfmt-action

 
 

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 46.8%
  • Dockerfile 40.4%
  • Shell 12.8%