json2po(1)
β¨ NAME β¨
json2po β bestie, this is THE glow-up tool that converts JSON files into Gettext PO localization files π
like it literally takes your cute lil JSON and turns it into .po/.pot royalty π
πΈ 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 π¦
okay so real talk, the full examples and usage instructions live right here:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/json2po.html
go read it, it's giving documentation excellence fr fr πβ¨
π OPTIONS π
--versionβ shows the program's version number and then dips out, bye π-h/--helpβ prints this help message and exits, no notes πββοΈ--manpageβ spits out a manpage built from the help, meta much? iconic π--progressβ how do you wanna see progress? choices are:dots,none,bar,names,verboseπ--errorlevelβ how loud should errors be? options:none,message,exception,tracebackπ-i/--inputβ read from INPUT injsonformat, this is where your source text comes from π-x/--excludeβ excludes names matching EXCLUDE from the input paths, so basically "not you, girl" π-o/--outputβ write to OUTPUT inpo,potformats πΎ-t/--templateβ read from TEMPLATE injsonformat π§-S/--timestampβ skips the conversion if the output file already has a newer timestamp, lowkey a timesaver β°-P/--potβ outputs PO Templates (.pot) instead of PO files (.po) π--filterβ leaves to extract, e.g.'name,desc'(default: extract everything) π--duplicatesβ what to do when you've got duplicate strings (identical source text):merge,msgctxt(default:'msgctxt') π
no cap, that--duplicatesdefault is'msgctxt'β don't forget it bestie π
and that's the whole vibe, you ate it π«Ά this was Translate Toolkit 3.19.5, muah π slay responsibly β¨π
π¦ where this page comes from
- ubuntu stonking: translate-toolkit 3.19.5-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms