i18n

package module
v0.0.0-...-818c598 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 9 Imported by: 1

README

README

This README would normally document whatever steps are necessary to get your application up and running.

What is this repository for?
How do I get set up?
  • Summary of set up
  • Configuration
  • Dependencies
  • Database configuration
  • How to run tests
  • Deployment instructions
Contribution guidelines
  • Writing tests
  • Code review
  • Other guidelines
Who do I talk to?
  • Repo owner or admin
  • Other community or team contact

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalizer

func GetLocalizer(langs ...string) *goi18n.Localizer

func GetOsLocalizer

func GetOsLocalizer() *goi18n.Localizer

func InitI18n

func InitI18n(fsys embed.FS, folder string) error

func T

func T(
	localizer *goi18n.Localizer,
	key string,
) string

func TF

func TF(
	localizer *goi18n.Localizer,
	key string,
	data map[string]interface{},
	pluralCount ...int,
) string

func TFx

func TFx(
	condition bool,
	localizer *goi18n.Localizer,
	key string,
	data map[string]interface{},
	pluralCount ...int,
) string

func Tx

func Tx(
	condition bool,
	localizer *goi18n.Localizer,
	key string,
) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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