UserFacingMessage
Yerel ayar bilgilerini içeren, kullanıcılara yönelik bir mesaj sağlar. Maksimum mesaj uzunluğu 4.096 karakterdir.
JSON gösterimi |
{
"localizedMessages": {
string: string,
...
},
"defaultMessage": string
} |
Alanlar |
localizedMessages |
map (key: string, value: string)
<locale, message> çiftleri içeren bir harita. locale, en-US, es-ES veya fr gibi iyi biçimlendirilmiş bir BCP 47 dil kodudur. "key": value çiftlerinin listesini içeren bir nesne. Örnek: { "name": "wrench", "mass": "1.3kg", "count": "3" } .
|
defaultMessage |
string
Yerelleştirilmiş bir mesaj belirtilmemişse veya kullanıcının yerel ayarı, yerelleştirilmiş mesajlardan hiçbiriyle eşleşmezse gösterilen varsayılan mesaj. Yerelleştirilmiş mesaj sağlanırsa varsayılan mesaj sağlanmalıdır.
|
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-10-15 UTC.
[null,null,["Son güncelleme tarihi: 2024-10-15 UTC."],[[["The JSON representation is used to provide user-facing messages with locale information, with a maximum length of 4096 characters."],["It includes `localizedMessages`, a map of locale codes and corresponding messages, and `defaultMessage` for fallback display."],["A well-formed BCP 47 language code is used for locale specification, and a default message is required if localized messages are provided."]]],["The content defines a JSON structure for user-facing messages with locale support. It includes `localizedMessages`, a map where keys are BCP 47 language codes and values are translated messages. The `defaultMessage` field is a string providing a fallback message when no matching locale is found. `localizedMessages` holds key-value message pairs, and a default message is required if there are any localized ones. The maximum message length is 4096 characters.\n"]]