LocalizedText
Biến thể đã bản địa hoá của một văn bản bằng một ngôn ngữ cụ thể.
Biểu diễn dưới dạng JSON |
{
"text": string,
"languageCode": string
} |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-11-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-11-27 UTC."],[[["LocalizedText provides localized strings in a specific language, represented by the `text` field."],["It uses the BCP-47 standard for language codes in the `languageCode` field, enabling global language support."],["The JSON representation combines the localized text and its language code for clear identification."]]],["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"]]