gettext
Version, currently 1.0.01 version
- 1.0.0latestFeb 12, 2022
github.com/GeopJr/gettext.cr
[MIRROR] Crystal bindings for the GNU & Musl gettext library.
5 stars
1 dependent
License: BSD-2-Clause
Installation
# Add this to your shard.yml
dependencies:
gettext:
github: GeopJr/gettext.cr
version: ~> 1.0.0Then run:
shards installshard.yml
- Crystal
1.3.2- License
- BSD-2-Clause
- Author
- Evangelos Paterakis <evan@geopjr.dev>
Dependencies
This version declares no dependencies.
README
<h1 align="center">gettext.cr</h1>
<h4 align="center">Crystal bindings for the GNU & Musl gettext library.</h4>
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
gettext:
github: GeopJr/gettext.cr
```
2. Run `shards install`
## Usage
[Docs](https://geopjr.github.io/gettext.cr/) include examples, but here's a generic one:
```crystal
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
1. Read the [Code of Conduct](https://github.com/GeopJr/gettext.cr/blob/main/CODE_OF_CONDUCT.md)
2. Fork it (<https://github.com/GeopJr/gettext.cr/fork>)
3. Create your feature branch (`git checkout -b my-new-feature`)
4. Commit your changes (`git commit -am 'Add some feature'`)
5. Push to the branch (`git push origin my-new-feature`)
6. Create a new Pull Request
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.0- Tagged
- Feb 12, 2022
- Commit
9374e7f42622- Crystal
1.3.2- Indexed
- yes
Dependents
Repository
github.com/GeopJr/gettext.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1