रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > utils > पार्सिंग > replaceMessageReferences
utils.parsing.replaceMessageReferences() फ़ंक्शन
अगर मैसेज एक स्ट्रिंग है, तो मैसेज में स्ट्रिंग टेबल के रेफ़रंस बदले जाते हैं. उदाहरण के लिए, "%{bky_my_msg}" और "%{BKY_MY_MSG}" दोनों को Msg['MY_MSG'] के मान से बदल दिया जाएगा.
हस्ताक्षर:
export declare function replaceMessageReferences(message: string | any): string;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
मैसेज |
स्ट्रिंग | कोई भी |
मैसेज लिखें, जो एक ऐसी स्ट्रिंग हो सकती है जिसमें स्ट्रिंग टेबल के संदर्भ हों. |
लौटाए जाने वाले प्रॉडक्ट:
स्ट्रिंग
मैसेज के रेफ़रंस वाली स्ट्रिंग बदली गई.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया."],[[["The `replaceMessageReferences` function substitutes string table references within a message string with their corresponding values from the `Msg` object."],["This function handles both \"%{bky_my_msg}\" and \"%{BKY_MY_MSG}\" formats, replacing them with the value of `Msg['MY_MSG']`."],["The function accepts a message, which can be a string potentially containing references or any other data type, and returns a string with references replaced."],["If the input message is not a string, it is returned unchanged."]]],[]]