Skip to content
G

Gotext

Go (Golang) GNU gettext utilities package

by leonelquinterosFree

#3433in Utilities
0In stores

Description

gotext is a Go package that implements the GNU gettext utilities natively, so Go applications can translate their text without calling exter…

Highlights

  • Native Go implementation of GNU gettext
  • PO and MO file support
  • Plural forms and message contexts
  • Thread-safe with no external dependencies
  • xgotext tool extracts strings from Go source

Ratings & Reviews

No ratings yet

Be the first to rate Gotext.

People also visit

G

Go I18n

Translate your Go program into multiple languages

Utilities
Launch
G

gettext + iconv

GNU gettext and GNU iconv tools

Utilities
Launch
P

Poedit

Simple translation editor for PO, XLIFF, JSON etc. for Mac/Windows/Unix

Utilities
Launch
G

GT

Full-stack localization for every framework

Utilities
Launch
P

Poedit

Powerful and intuitive translation editor

Utilities
Launch
F

Fluent

Planning, spec and documentation

Utilities
Launch

Gotext FAQ

What is gotext?

A Go package that implements GNU gettext, used to translate strings in Go applications.

How do I install it?

Add the Go package to your project as shown in the README installation section. The xgotext CLI is installed separately.

How do I extract strings to translate?

Run xgotext on your Go source to create .pot templates, then merge them into language-specific .po files.

Does it support plurals?

Yes. It handles plural forms defined in PO headers using GNU gettext expressions.

Is it safe to use from several goroutines?

Yes. The README describes the package as thread-safe for concurrent use.

What are the best Gotext alternatives?

Popular alternatives to Gotext include Go I18n, gettext + iconv and Poedit. See all Gotext alternatives

Developer Stuff

Badges