LocalizedMessage
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अगर भेजे गए अनुरोध में Accept-Language
हेडर "अंग्रेज़ी" नहीं है, तो Apps Script API से मिलने वाली गड़बड़ियों में यह मैसेज शामिल होता है. इसमें वही गड़बड़ी वाला टेक्स्ट है जिसका अनुवाद अनुरोध की गई स्थान-भाषा में किया गया है.
JSON के काेड में दिखाना |
{
"locale": string,
"message": string
} |
फ़ील्ड |
locale |
string
https://www.rfc-editor.org/rfc/bcp/bcp47.txt पर बताए गए स्पेसिफ़िकेशन के मुताबिक इस्तेमाल की गई स्थान-भाषा. जैसे: "en-US", "fr-CH", "es-MX"
|
message |
string
ऊपर दी गई स्थान-भाषा में, स्थानीय जगह के हिसाब से गड़बड़ी का मैसेज.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe \u003ccode\u003eAccept-Language\u003c/code\u003e header in the request determines the language of error messages.\u003c/p\u003e\n"],["\u003cp\u003eError responses may contain a localized message object with the locale and translated message.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elocale\u003c/code\u003e field follows the BCP 47 specification for language tags (e.g., "en-US").\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emessage\u003c/code\u003e field provides the error message translated into the specified locale.\u003c/p\u003e\n"]]],[],null,["# LocalizedMessage\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nIf the `Accept-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.\n\n| JSON representation |\n|-------------------------------------------------|\n| ``` { \"locale\": string, \"message\": string } ``` |\n\n| Fields ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `locale` | `string` The locale used following the specification defined at \u003chttps://www.rfc-editor.org/rfc/bcp/bcp47.txt\u003e. Examples are: \"en-US\", \"fr-CH\", \"es-MX\" |\n| `message` | `string` The localized error message in the above locale. |"]]