From e119e842fbfd32688aaa87b489a060a496ae47fe Mon Sep 17 00:00:00 2001 From: Onur Cinar Date: Sat, 28 Dec 2024 22:25:50 -0800 Subject: [PATCH] RegisterLocale link is fixed. (#154) # Describe Request RegisterLocale link is fixed. # Change Type Documentation fix. --- v2/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/README.md b/v2/README.md index 0378979..e0dd250 100644 --- a/v2/README.md +++ b/v2/README.md @@ -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.