locales

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package locales 本地化内容

Index

Constants

View Source
const (
	InvalidFormat    = locales.InvalidFormat
	InvalidURLFormat = web.StringPhrase("invalid url format")
	InvalidValue     = locales.InvalidValue
	Required         = locales.CanNotBeEmpty
	MustBeEmpty      = web.StringPhrase("must be empty")
	StrengthInvalid  = web.StringPhrase("strength invalid")
	NotInCandidate   = web.StringPhrase("the value not in candidate")
	NotFound         = web.StringPhrase("not found")
)

一些常用的翻译项

Variables

View Source
var All = append([]fs.FS{locale, wl.Locales}, locales.Locales...)

Functions

func ErrMustBeGreaterThan

func ErrMustBeGreaterThan[T any](v T) error

func ErrMustBeLessThan

func ErrMustBeLessThan[T any](v T) error

func MustBeGreaterThan

func MustBeGreaterThan[T any](v T) web.LocaleStringer

func MustBeLessThan

func MustBeLessThan[T any](v T) web.LocaleStringer

Types

This section is empty.

Jump to

Keyboard shortcuts

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