l10n

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Translate

func Translate(content, locale, defaultLocale, translationPath string) string

Translate translates a string based on the locale and default locale

func TranslateEntity

func TranslateEntity(locale, defaultLocale string, entity any, opts ...l10n.TranslateOption) error

TranslateEntity returns a function that translates a struct or slice based on the locale

Types

This section is empty.

Jump to

Keyboard shortcuts

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