Improved docs
This commit is contained in:
10
README.md
10
README.md
@@ -10,15 +10,15 @@ Version: [1.0.0](https://github.com/leonelquinteros/gotext/releases/tag/v1.0.0)
|
|||||||
# Features
|
# Features
|
||||||
|
|
||||||
- Implements GNU gettext support in native Go.
|
- Implements GNU gettext support in native Go.
|
||||||
- Safe for concurrent use across multiple goroutines.
|
- Complete support for [PO files](https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html).
|
||||||
|
- Support for [pluralization rules](https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html).
|
||||||
|
- Support for [message context](https://www.gnu.org/software/gettext/manual/html_node/Contexts.html).
|
||||||
|
- Support for variables inside translation strings using Go's [fmt package syntax](https://golang.org/pkg/fmt/).
|
||||||
|
- Thread-safe: This package is safe for concurrent use across multiple goroutines.
|
||||||
- It works with UTF-8 encoding as it's the default for Go language.
|
- It works with UTF-8 encoding as it's the default for Go language.
|
||||||
- Unit tests available.
|
- Unit tests available.
|
||||||
- Language codes are automatically simplified from the form "en_UK" to "en" if the first isn't available.
|
- Language codes are automatically simplified from the form "en_UK" to "en" if the first isn't available.
|
||||||
- Ready to use inside Go templates.
|
- Ready to use inside Go templates.
|
||||||
- Support for [pluralization rules](https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html).
|
|
||||||
- Support for [message context](https://www.gnu.org/software/gettext/manual/html_node/Contexts.html).
|
|
||||||
- Support for variables inside translation strings using Go's [fmt package syntax](https://golang.org/pkg/fmt/).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Package gotext implements GNU gettext utilities.
|
Package gotext implements GNU gettext utilities.
|
||||||
|
|
||||||
Version 0.9.0 (stable)
|
|
||||||
|
|
||||||
For quick/simple translations you can use the package level functions directly.
|
For quick/simple translations you can use the package level functions directly.
|
||||||
|
|
||||||
import "github.com/leonelquinteros/gotext"
|
import "github.com/leonelquinteros/gotext"
|
||||||
|
|||||||
Reference in New Issue
Block a user