po2json(1)

✨ po2json(1) ✨

ok so bestie, this is the manual page for po2json πŸŽ€ β€” that's the command name, the whole ~vibe~ of this doc. And the toolkit behind it is Translate Toolkit 3.19.5, which is the version of the source this page ships with. Buckle up πŸ’…


🌸 NAME 🌸

po2json β€” Convert Gettext PO localization files to JSON files.

like, it takes your .po files and goes poof β€” now they're .json πŸ¦‹


🫢 SYNOPSIS 🫢

po2json [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[--threshold PERCENT] [--fuzzy] [--nofuzzy] [--removeuntranslated]

yes it's a long one, she's got a lot going on, she's that girl πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/json2po.html for examples and usage instructions.

ngl that link literally goes to the json2po page and says it's got the examples and usage instructions, so if you want the lore, that's where the lore is πŸ“–βœ¨


πŸŽ€ OPTIONS πŸŽ€

  • --version β€” show program's version number and exit. quick lil "who am i" moment πŸͺž
  • -h/--help β€” show this help message and exit. the classic cry for help but make it helpful 🫢
  • --manpage β€” output a manpage based on the help. it's giving self-portrait 🎨
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your fave lil loading aesthetic ✨
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. how much chaos do you want in the group chat πŸ’€
  • -i/--input β€” read from INPUT in po, pot formats. this is the source bestie πŸ“
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not today, not on my watch πŸ™ˆ
  • -o/--output β€” write to OUTPUT in json format. the glow-up destination πŸ’…
  • -t/--template β€” read from TEMPLATE in json format. a lil reference blueprint, iconic 🧚
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp. she said "already dealt with it, next" πŸ’β€β™€οΈ
  • --threshold β€” only convert files where the translation completion is above PERCENT. queen behaviour, we're setting standards πŸ‘‘
  • --fuzzy β€” use translations marked fuzzy. yes we're including the messy ones, embrace them 🌈
  • --nofuzzy β€” don't use translations marked fuzzy (default). the tidy girlie setting ✨
  • --removeuntranslated β€” remove untranslated strings from output. ghosting the unfinished ones, fr fr πŸ‘»
lowkey important: --nofuzzy is the default, so if you do nothing, fuzzy translations are NOT used. no cap. πŸ”₯

ok that's literally the whole page, thank you for coming to my ted talk πŸ’œ

Translate Toolkit 3.19.5 babes, manual name po2json(1) β€” mwah, go convert something gorgeous πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from