{"repo":"leonelquinteros/gotext","free":true,"listed":false,"github":"https://github.com/leonelquinteros/gotext","clone":"git clone https://github.com/leonelquinteros/gotext.git","description":"Go (Golang) GNU gettext utilities package","language":"Go","stars":507,"topics":["go","po-files","translation","language","i18n","gettext","golang","internationalization","l10n","translated-strings"],"license":null,"category":"cli-tools","readme_excerpt":"Gotext GNU gettext utilities for Go. gotext is a native Go implementation of the GNU Gettext utilities. It provides a thread-safe, flexible, and powerful way to handle internationalization (i18n) and localization (l10n) in your Go applications. --- 📖 Read the Full Documentation --- Table of Contents - Features - Installation - Getting Started - CLI Tool (xgotext) - Advanced Usage - Locale Object - Plural Forms - Dynamic Variables - Directory Structure - Contributing - License --- Features - Native Go implementation of Gettext (the core library has no external dependencies). - Full support for PO and MO files . - Pluralization rules support via GNU Gettext plural-form expressions. - Message context support ( msgctxt ). - Thread-safe for concurrent use. - Works with UTF-8 by default. - Integrated CLI tool ( xgotext ) for string extraction. - Serializable objects for caching. - Plain-string results that plug directly into Go's text/template and html/template pipelines. --- Installation --- Getting Started For a quick start, use the package-level API: For more details, see the Getting Started Guide. --- CLI Tool (xgotext) gotext includes a command-line tool to extract translatable strings from your Go source code. Install xgotext: Extract strings: See the xgotext Documentation for full usage details. --- Advanced Usage Using Locale object For managing multiple languages or domains independently: Use plural forms of translations gotext handles complex pluralization rules defined ","default_branch":null,"files":null,"tree":[],"storefront":"/r/leonelquinteros","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leonelquinteros/gotext/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}