UserFacingMessage
লোকেল তথ্য সহ একটি ব্যবহারকারী-মুখী বার্তা প্রদান করে। সর্বাধিক বার্তা দৈর্ঘ্য 4096 অক্ষর।
JSON প্রতিনিধিত্ব |
---|
{
"localizedMessages": {
string: string,
...
},
"defaultMessage": string
} |
ক্ষেত্র |
---|
localizedMessages | map (key: string, value: string) একটি মানচিত্র যেখানে <locale, message> জোড়া রয়েছে, যেখানে লোকেল একটি সুগঠিত BCP 47 ভাষার কোড, যেমন en-US, es-ES, বা fr। "key": value জোড়া। উদাহরণ: { "name": "wrench", "mass": "1.3kg", "count": "3" } |
defaultMessage | string ডিফল্ট বার্তা প্রদর্শিত হয় যদি কোনো স্থানীয় বার্তা নির্দিষ্ট করা না থাকে বা ব্যবহারকারীর লোকেল কোনো স্থানীয় বার্তার সাথে মেলে না। কোনো স্থানীয় বার্তা প্রদান করা হলে একটি ডিফল্ট বার্তা প্রদান করা আবশ্যক। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-13 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-13 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"]]