LocalizedMessage
如果傳入要求中的 Accept-Language
標頭不是「英文」,則 Apps Script API 傳回的錯誤會包含這則訊息。其中包含已翻譯成要求語言代碼的相同錯誤文字。
JSON 表示法 |
{
"locale": string,
"message": string
} |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-14 (世界標準時間)。
[null,null,["上次更新時間:2024-10-14 (世界標準時間)。"],[[["The `Accept-Language` header in the request determines the language of error messages."],["Error responses may contain a localized message object with the locale and translated message."],["The `locale` field follows the BCP 47 specification for language tags (e.g., \"en-US\")."],["The `message` field provides the error message translated into the specified locale."]]],[]]