Skip to content

Commit

Permalink
RegisterLocale link is fixed. (#154)
Browse files Browse the repository at this point in the history
# Describe Request

RegisterLocale link is fixed.

# Change Type

Documentation fix.
  • Loading branch information
cinar authored Dec 29, 2024
1 parent 45bb608 commit e119e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit e119e84

Please sign in to comment.