Go to file
Elara c6438486d3 Add tests 2023-01-13 22:11:29 -08:00
cmd/translate Switch to crc32 as TOML cannot encode MaxUint64 2023-01-12 18:29:31 -08:00
testdata Add tests 2023-01-13 22:11:29 -08:00
.gitignore Initial Commit 2023-01-12 17:57:07 -08:00
LICENSE Initial Commit 2023-01-12 17:57:07 -08:00
README.md Initial Commit 2023-01-12 17:57:07 -08:00
go.mod Initial Commit 2023-01-12 17:57:07 -08:00
go.sum Initial Commit 2023-01-12 17:57:07 -08:00
logger.go Fix recursive infinite loops 2023-01-12 18:59:04 -08:00
translate.go Switch to crc32 as TOML cannot encode MaxUint64 2023-01-12 18:29:31 -08:00
translate_test.go Add tests 2023-01-13 22:11:29 -08:00

README.md

Translate

This library is an incredibly simple translation system for Go. It is designed to work well with go.arsenm.dev/logger, and doesn't have nearly as many features as other solutions, because those features are not needed for all applications, and they increase complexity unnecessarily in use cases that don't need it. All this package does is parses TOML files for translations, and then gets the raw text from the files for whatever language you want to translate to.

If you need advanced functionality, such as handling singular/plural words, gender, etc., use other packages such as golang.org/x/text/message or github.com/nicksnyder/go-i18n.