json2po(1)

πŸ“¦ version 3.12.1, in opensuse-leap 16.0

✨ 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 in json format
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths
  • -o/--output β€” write to OUTPUT in po, pot formats
  • -t/--template β€” read from TEMPLATE in json format
  • -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 β€” --duplicates ships as 'msgctxt' and --filter ships 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