Skip to content

Experimental gettext replacement using tree-sitter language parsing

License

Notifications You must be signed in to change notification settings

ewlsh/tree-gettext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tree-gettext

This project uses tree-sitter to parse language files for translation strings. It generates a POT file that should be compatible with the output of xgettext and similar utilities.

Supported Languages

  • C
  • JavaScript
  • XML
    • UI files
    • Metainfo files
  • .desktop Files

Additional languages can be added using the appropriate Tree Sitter grammar.

Usage

# Example generating gnome-shell's POT file
tree-gettext pot --file-list=./po/POTFILES.in gnome-shell.main.pot --issue-tracker="https://gitlab.gnome.org/GNOME/gnome-shell/issues"

About

Experimental gettext replacement using tree-sitter language parsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published