i18n

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCatalogFromFolder

func NewCatalogFromFolder(dir fs.FS, fallbackLang string) (catalog.Catalog, error)

NewCatalogFromFolder read all translations yml files from dir and generates a translation catalog from them. Each yml file must be named as the two-letter identifier of the language of the translation, e. g. "es" for spanish, "en" for english, etc.

func ParseYAMLDict

func ParseYAMLDict(file []byte) (*yamlDictionary, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL