po2json(1)

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

πŸ’– po2json β€” NAME πŸŽ€

ok so bestie, po2json is a lil command-line icon that converts Gettext PO localization files into JSON files. that's it, that's the whole vibe. po in, json out, slay ✨

part of the Translate Toolkit era, version 3.12.1 β€” put some respect on the version number fr fr πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

like, exactly this, no cap:

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]

ok lowkey that's a lot of brackets but she's organized πŸ’€


🌸 DESCRIPTION 🌸

so the manpage itself literally just points you here:

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

yes bestie, json2po.html β€” that's what the original says, that's what you're getting. the docs are the main character here, go read them 🫢 i'm just the messenger 🧚


✨ OPTIONS ✨

okay here's the full menu, nothing skipped, nothing hidden, we don't gatekeep πŸ‘‘

  • --version β€” show the program's version number and dip (exit) πŸ’¨
  • -h, --help β€” show this help message and bail
  • --manpage β€” output a manpage based on the help. so meta. so iconic. it's giving self-aware
  • --progress β€” show progress as one of: dots, none, bar, names, verbose. pick your aesthetic πŸŽ€
  • --errorlevel β€” show errorlevel as one of: none, message, exception, traceback. choose your own chaos level πŸ’€
  • -i, --input β€” read from INPUT in po, pot formats πŸ“₯
  • -x, --exclude β€” exclude names matching EXCLUDE from the input paths. bye felicia πŸ‘‹
  • -o, --output β€” write to OUTPUT in json format πŸ“€
  • -t, --template β€” read from TEMPLATE in json format 🧩
  • -S, --timestamp β€” skip conversion if the output file has a newer timestamp. she's lazy in a smart way, i respect it ⏰
  • --threshold β€” only convert files where the translation completion is above PERCENT πŸ”₯
  • --fuzzy β€” use translations marked fuzzy πŸ“
  • --nofuzzy β€” don't use translations marked fuzzy (this is the default, just so you know) πŸ™ˆ
  • --removeuntranslated β€” remove untranslated strings from the output. clean girl aesthetic 🧹

and that's the whole list β€” all 14 of them, accounted for, no shortcuts taken, we ate and left no crumbs πŸ’…


quick vibe check: --fuzzy and --nofuzzy are opposites and --nofuzzy is the default, so if you don't pass anything you're already in no-fuzzy territory. just so there's no confusion later, bestie πŸ’–

🌈 that's the whole page πŸ¦‹

no SEE ALSO, no bugs section, no author block β€” she's short and to the point, main character energy only ⭐

this little masterpiece comes courtesy of Translate Toolkit 3.12.1 β€” that's the source and version, right from the footer, and i'm telling you here instead of copy-pasting the footer line like a boring person 😌

mwah, go convert some PO files, you got this πŸ‘‘πŸ’œπŸŽ€

πŸ“¦ where this page comes from