This Perl script converts a PO file into a JSON JED-like file as produced by gettext-parser, suitable for svelte-i18n-gettext.
perl po2json.pl --po messages.po --json messages.json --context app--pothe source PO file.--jsonthe destination JSON file.--contextthe default context if there's no one present. Optional.
cpan install JSON::PP Locale::PO Getopt::Long File::TempJSON::PPLocale::POGetopt::LongFile::Temp
Copyright 2025 Rodolfo González González.
Licensed under Apache 2.0 license. Read the LICENSE file.