Skip to content

rgglez/gettext-po2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gettext-po2json

License GitHub all releases GitHub issues GitHub commit activity GitHub stars GitHub forks

This Perl script converts a PO file into a JSON JED-like file as produced by gettext-parser, suitable for svelte-i18n-gettext.

Usage

perl po2json.pl --po messages.po --json messages.json --context app
  • --po the source PO file.
  • --json the destination JSON file.
  • --context the default context if there's no one present. Optional.

Dependencies

cpan install JSON::PP Locale::PO Getopt::Long File::Temp
  • JSON::PP
  • Locale::PO
  • Getopt::Long
  • File::Temp

License

Copyright 2025 Rodolfo González González.

Licensed under Apache 2.0 license. Read the LICENSE file.

About

Converts a PO file into a gettext-parser JSON format

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages