LocalizedMessage Stay organized with collections Save and categorize content based on your preferences.
Page Summary
Apps Script API errors include a
LocalizedMessagewith translated error text if theAccept-Languageheader is not "English".The
LocalizedMessageis represented in JSON with fields for thelocaleand the translatedmessage.The
localefield uses the specification defined in BCP 47.
If theAccept-Language header in the incoming request is not "English", then errors returned by the Apps Script API include this message. It contains the same error text translated to the requested locale.
| JSON representation |
|---|
{"locale":string,"message":string} |
| Fields | |
|---|---|
locale |
The locale used following the specification defined athttps://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" |
message |
The localized error message in the above locale. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.