Registry / utility / fast-gettext

fast-gettext

JSON →
library4.1.1rbrubygemsunverified

A simple, fast, memory-efficient and threadsafe implementation of GetText for internationalization.

gem install fast_gettext
INSTALL
IMPORT
SIG · FAST-GETTEXT
F
fast-gettext
utilityrubyv4.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FastGettext
require 'fast_gettext'

Set up a text domain and translate a string.

require 'fast_gettext' FastGettext.add_text_domain('myapp', path: 'locale') FastGettext.default_text_domain = 'myapp' puts _('Hello') # Translates 'Hello' based on locale
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.1.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fast-gettext — gem install fast-gettext · libregistry