function
IsValidLocaleCode
Check locale codes accepted by URLs, contracts, and storage.
Arguments
| Argument | Type | Description |
|---|---|---|
value | string | The candidate identifier. |
Returns
True for a 1–35 byte alphanumeric code with hyphen/underscore segments that is not a reserved request token.
boolFull signature
func IsValidLocaleCode(value string) bool