LocalizedText
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ข้อความรูปแบบต่างๆ ที่แปลแล้วในภาษาใดภาษาหนึ่ง
การแสดง JSON |
{
"text": string,
"languageCode": string
} |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eLocalizedText provides localized strings in a specific language, represented by the \u003ccode\u003etext\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eIt uses the BCP-47 standard for language codes in the \u003ccode\u003elanguageCode\u003c/code\u003e field, enabling global language support.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation combines the localized text and its language code for clear identification.\u003c/p\u003e\n"]]],["The provided information describes a JSON structure for representing localized text. It includes two key fields: `text`, which holds the localized string, and `languageCode`, which uses a BCP-47 code (e.g., \"en-US\") to specify the language of the `text`. This schema allows for the storage and identification of a string in a particular language, referencing external information for further detail.\n"],null,["# LocalizedText\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nLocalized variant of a text in a particular language.\n\n| JSON representation |\n|----------------------------------------------------|\n| ``` { \"text\": string, \"languageCode\": string } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `text` | `string` Localized string in the language corresponding to [languageCode](/maps/documentation/routes/reference/rest/v2/LocalizedText#FIELDS.language_code) below. |\n| `languageCode` | `string` The text's BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see \u003chttp://www.unicode.org/reports/tr35/#Unicode_locale_identifier\u003e. |"]]