AI-generated Key Takeaways
-
Provides a user-facing message with locale information, with a maximum length of 4096 characters.
-
The JSON representation includes
localizedMessages
anddefaultMessage
. -
localizedMessages
is a map of locale to message pairs using BCP 47 language codes. -
defaultMessage
is a string displayed when no localized message is available or matches the user's locale and is required if localized messages are provided.
Provides a user-facing message with locale info. The maximum message length is 4096 characters.
JSON representation |
---|
{ "localizedMessages": { string: string, ... }, "defaultMessage": string } |
Fields | |
---|---|
localizedMessages |
A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language code, such as en-US, es-ES, or fr. An object containing a list of |
defaultMessage |
The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. |