json2po(1)
β¨ json2po(1) β the glow-up edition β¨
okay so bestie, real talk: this is json2po from the Translate Toolkit, version 3.12.1 β and no, I did not forget the version, we're getting to that at the end π It's a whole little conversion icon that takes your JSON files and turns them into Gettext PO localization files. It's giving translator-baddie pipeline energy, fr fr.
πΈ SYNOPSIS πΈ
json2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[-P|--pot] [--filter FILTER] [--duplicates DUPLICATESTYLE]
π DESCRIPTION π
so like, the actual docs live over at:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/json2po.html
and that's where you go for examples and usage instructions. that link is your bestie for the deep lore π«Ά
π OPTIONS π
--versionβ shows the program's version number and then dips out, exit stage left-h/--helpβ shows this help message and then also dips--manpageβ outputs a manpage built from the help. yes bestie, the tool writes its own manpage, iconic behavior π--progressβ show progress as:dots,none,bar,names,verbose--errorlevelβ show errorlevel as:none,message,exception,traceback-i/--inputβ read from INPUT injsonformat-x/--excludeβ exclude names matching EXCLUDE from input paths-o/--outputβ write to OUTPUT inpo,potformats-t/--templateβ read from TEMPLATE injsonformat-S/--timestampβ skip conversion if the output file has a newer timestamp (lowkey a little lazy-girl hack and we respect it)-P/--potβ output PO Templates (.pot) rather than PO files (.po)--filterβ leaves to extract, e.g.'name,desc': (default: extract everything). like, everything everything. no filter, no thoughts, just vibes β¨--duplicatesβ what to do with duplicate strings (identical source text):merge,msgctxt(default:'msgctxt')
ngl, when in doubt just don't touch the defaults β--duplicatesships as'msgctxt'and--filterships as "extract everything", and they're that girl for a reason π
and that's the whole page, bestie π¦ go forth and convert your JSON. mwah π
β written up by your girl for the manpage of json2po, out of the Translate Toolkit, version 3.12.1 π (that's the source and version at the bottom of the original page β consider this your cute little sign-off, no cap) π
π¦ where this page comes from
- opensuse-leap 16.0: python313-translate-toolkit 3.12.1-bp160.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms