RegisterLocale link is fixed. (#154)
# Describe Request RegisterLocale link is fixed. # Change Type Documentation fix.
This commit is contained in:
parent
45bb608b3a
commit
e119e842fb
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ In this example, the `is-fruit` checker is used to validate that the `Name` fiel
|
|||
|
||||
When validation fails, Checker returns an error. By default, the [Error()](DOC.md#CheckError.Error) function provides a human-readable error message in `en-US` locale.
|
||||
|
||||
To get error messages in other languages, use the [ErrorWithLocale()](DOC.md#CheckError.ErrorWithLocale) function. By default, only `en-US` is registered. You can register additional languages by calling [RegisterLocale](DOC.md##RegisterLocale).
|
||||
To get error messages in other languages, use the [ErrorWithLocale()](DOC.md#CheckError.ErrorWithLocale) function. By default, only `en-US` is registered. You can register additional languages by calling [RegisterLocale](DOC.md#RegisterLocale).
|
||||
|
||||
You can also customize existing error messages or add new ones to `locales.EnUSMessages` and other locale maps.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue