Documentation
¶
Overview ¶
Package i18n is responsible for internationalization/translation handling and generation.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitI18nDomain ¶
InitI18nDomain loads domain for the user current locale. If a poDir is passed as fs.FS, then, it will override for the domain any translations potentially present on disk.
Example ¶
i18n.InitI18nDomain("domain", nil)
fmt.Println(gotext.Get("some strings"))
Example (EmbeddedFiles) ¶
i18n.InitI18nDomain("apt", po.Files)
fmt.Println(gotext.Get("unknown"))
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
compile-mo
command
package main implements compile-mo command line to compile localised po file to mo via gettext.
|
package main implements compile-mo command line to compile localised po file to mo via gettext. |
|
update-po
command
package main implements update-po command line to update one domain pot file and merge with any existing translations.
|
package main implements update-po command line to update one domain pot file and merge with any existing translations. |
Click to show internal directories.
Click to hide internal directories.