'NODE-PO2JSON'(1)

🌸 NODE-PO2JSON 🌸

okay bestie, gather round, because today we're learning about node-po2json and honestly?? it's giving "small tool, big slay" πŸ’…


✨ NAME ✨

node-po2json β€” convert po files to json (Javascript) πŸ¦‹


✨ SYNOPSIS ✨

po2json <input> <output> [options]

✨ DESCRIPTION ✨

  • input β€” input file
  • output β€” output file

that's it, that's the whole vibe. one file goes in, another file comes out. main character energy fr fr 😌


✨ OPTIONS ✨

  • -p, --pretty β€” pretty-print JSON. your JSON gets its glow-up ✨
  • -F, --fuzzy β€” include fuzzy messages. yes queen, bring the fuzzy ones too 🫢
  • -f, --format β€” output format, one of: raw, jed, jed1.x, mf (messageformat). default is raw πŸ’–
  • -d, --domain β€” domain. default is messages πŸŽ€
  • --fallback-to-msgid β€” Use msgid if translation is missing (nplurals must match) πŸ‘‘
not me double-checking the nplurals must match part... bestie, that one is a requirement, not a suggestion. read it again, i'll wait πŸ™ˆ

πŸ” usage (yes, again, it's the same thing, the page just says it twice)

Usage: po2json <input> <output> [options]
  • input β€” input file
  • output β€” output file
  • -p, --pretty β€” pretty-print JSON ✨
  • -F, --fuzzy β€” include fuzzy messages 🌸
  • -f, --format β€” output format, one of: raw, jed, jed1.x, mf (messageformat), defaulting to raw πŸ’œ
  • -d, --domain β€” domain, defaulting to messages πŸ“
  • --fallback-to-msgid β€” Use msgid if translation is missing (nplurals must match) 🌈

like i said. iconic, repetitive, but iconic πŸ’€


okay that's the whole page, go convert some po files to json and absolutely ate it πŸ‘‘

0.4.2 Β· July 2016 Β· mwah, love u, bye πŸŽ€βœ¨