i18n

package
v0.0.0-...-f0180c5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadLocaleFiles

func LoadLocaleFiles(fs *embed.FS, path string)

LoadLocaleFiles Load Locales files which are embedded in the binary

Types

type I18n

type I18n struct {
	LangCode string
}

I18n is the struct for i18n

func (I18n) GetString

func (goloc I18n) GetString(key string) string

GetString get the string from the embedded locale

func (I18n) GetStringSlice

func (goloc I18n) GetStringSlice(key string) []string

GetStringSlice get the string slice from the embedded locale

Jump to

Keyboard shortcuts

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