gettext.cr v1.0.0
gettext.cr
Crystal bindings for the GNU & Musl gettext library.
Installation
-
Add the dependency to your
shard.yml:dependencies: gettext: git: https://codeberg.org/GeopJr/gettext.cr.git -
Run
shards install
Usage
Docs include examples, but here's a generic one:
require "gettext"
Gettext.setlocale(Gettext::LC::ALL, "el_GR.UTF-8")
Gettext.dgettext("gedit", "Text Editor") # => "Επεξεργαστής κειμένου"
Gettext.ngettext("Crystal", "Crystals", rand(5)) # => "Crystals" or "Crystal"
Contributing
- Read the Code of Conduct
- Fork it (https://codeberg.org/GeopJr/gettext.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Repository
gettext.cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- about 7 hours ago
- March 24, 2026
License
Links
Synced at
Tue, 24 Mar 2026 22:17:42 GMT
Languages