translations

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package translations provides localized message templates for the validator's built-in rules, keyed by rule signature, for use with validator.WithTranslation. Each function returns a fresh map, so a caller may edit entries before passing it on; templates use the same {field}, {0}, {1} and {N+} placeholders as the English defaults.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Es

func Es() map[string]string

Es returns Spanish templates keyed by rule signature.

func Ja

func Ja() map[string]string

Ja returns Japanese templates keyed by rule signature.

func Ko

func Ko() map[string]string

Ko returns Korean templates keyed by rule signature.

func Ru added in v0.2.0

func Ru() map[string]string

Ru returns Russian (ru) templates keyed by rule signature.

func ZhHans

func ZhHans() map[string]string

ZhHans returns Simplified Chinese (zh-Hans) templates keyed by rule signature.

func ZhHant

func ZhHant() map[string]string

ZhHant returns Traditional Chinese (zh-Hant) templates keyed by rule signature.

Types

This section is empty.

Jump to

Keyboard shortcuts

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