[{"data":1,"prerenderedAt":534},["ShallowReactive",2],{"page-\u002Fcore\u002Fapi\u002Ffunctions\u002FresolveLanguageText":3,"navigation":147},{"collection":4,"page":5},"docs_en",{"id":6,"title":7,"body":8,"description":137,"extension":138,"meta":139,"navigation":141,"path":142,"rawbody":143,"seo":144,"stem":145,"__hash__":146},"docs_en\u002Fcore\u002Fapi\u002Ffunctions\u002FresolveLanguageText.md","resolveLanguageText",{"type":9,"value":10,"toc":126},"minimark",[11,36,57,85,90,93,102,104,108,110,118,122],[12,13,14],"blockquote",{},[15,16,17,20,21,25,26,25,29,32,33],"p",{},[18,19,7],"strong",{},"(",[22,23,24],"code",{},"text",", ",[22,27,28],{},"locale",[22,30,31],{},"fallback?","): ",[22,34,35],{},"string",[15,37,38,39,41,42,44,45,48,49,52,53,56],{},"Resolves ",[22,40,24],{}," to a single string for ",[22,43,28],{},": exact tag, then its base\nlanguage (",[22,46,47],{},"pt-BR"," → ",[22,50,51],{},"pt","), then ",[22,54,55],{},"fallback",", then the first available value.\nEmpty labels count as missing.",[58,59,60,64,71],"ul",{},[61,62,63],"li",{},"A plain string is locale-invariant and returned as-is.",[61,65,66,67,70],{},"A JSON object string (",[22,68,69],{},"'{\"en\":\"Pump\",\"pt\":\"Bomba\"}'",") is parsed and\nresolved like the object; malformed JSON is treated as a plain string.",[61,72,73,76,77,80,81,84],{},[22,74,75],{},"null"," \u002F ",[22,78,79],{},"undefined",", and objects (or JSON objects) with no usable label,\nresolve to ",[22,82,83],{},"''",".",[86,87,89],"h2",{"id":88},"parameters","Parameters",[91,92,24],"h3",{"id":24},[15,94,95],{},[96,97,99],"a",{"href":98},"\u002Fcore\u002Fapi\u002Ftype-aliases\u002FLanguageTextInput",[22,100,101],{},"LanguageTextInput",[91,103,28],{"id":28},[15,105,106],{},[22,107,35],{},[91,109,31],{"id":55},[15,111,112,114,115],{},[22,113,35],{}," = ",[22,116,117],{},"'en'",[86,119,121],{"id":120},"returns","Returns",[15,123,124],{},[22,125,35],{},{"title":127,"searchDepth":128,"depth":128,"links":129},"",2,[130,136],{"id":88,"depth":128,"text":89,"children":131},[132,134,135],{"id":24,"depth":133,"text":24},3,{"id":28,"depth":133,"text":28},{"id":55,"depth":133,"text":31},{"id":120,"depth":128,"text":121},"Resolves text to a single string for locale: exact tag, then its base language (pt-BR → pt), then fallback, then the first available value. Empty labels count as missing.","md",{"generated":140},true,false,"\u002Fcore\u002Fapi\u002Ffunctions\u002FresolveLanguageText","---\npath: \"\u002Fcore\u002Fapi\u002Ffunctions\u002FresolveLanguageText\"\ntitle: resolveLanguageText\ndescription: \"Resolves text to a single string for locale: exact tag, then its base language (pt-BR → pt), then fallback, then the first available value. Empty labels count as missing.\"\ngenerated: true\nnavigation: false\n---\n\n> **resolveLanguageText**(`text`, `locale`, `fallback?`): `string`\n\nResolves `text` to a single string for `locale`: exact tag, then its base\nlanguage (`pt-BR` → `pt`), then `fallback`, then the first available value.\nEmpty labels count as missing.\n\n- A plain string is locale-invariant and returned as-is.\n- A JSON object string (`'{\"en\":\"Pump\",\"pt\":\"Bomba\"}'`) is parsed and\n  resolved like the object; malformed JSON is treated as a plain string.\n- `null` \u002F `undefined`, and objects (or JSON objects) with no usable label,\n  resolve to `''`.\n\n## Parameters\n\n### text\n\n[`LanguageTextInput`](\u002Fcore\u002Fapi\u002Ftype-aliases\u002FLanguageTextInput)\n\n### locale\n\n`string`\n\n### fallback?\n\n`string` = `'en'`\n\n## Returns\n\n`string`\n",{"title":7,"description":137},"core\u002Fapi\u002Ffunctions\u002FresolveLanguageText","A4DkXZ8xAgMSYErGN0T_RQbxV9Cq0PeupRkguPyCFTY",{"docs_en":148,"spec":465,"changelogs":515},[149,169,188,243,353,407],{"title":150,"path":151,"stem":152,"children":153},"Ai","\u002Fai","ai",[154,157,161,165],{"title":155,"path":151,"stem":156},"Introduction","ai\u002Findex",{"title":158,"path":159,"stem":160},"Converting reports with an assistant","\u002Fai\u002Fconversion-skill","ai\u002Fconversion-skill",{"title":162,"path":163,"stem":164},"llms.txt and Markdown pages","\u002Fai\u002Fllms","ai\u002Fllms",{"title":166,"path":167,"stem":168},"MCP server","\u002Fai\u002Fmcp","ai\u002Fmcp",{"title":170,"path":171,"stem":172,"children":173},"Contributing","\u002Fcontributing","contributing",[174,176,180,184],{"title":155,"path":171,"stem":175},"contributing\u002Findex",{"title":177,"path":178,"stem":179},"Writing docs","\u002Fcontributing\u002Fwriting-docs","contributing\u002F1.writing-docs",{"title":181,"path":182,"stem":183},"Update rules","\u002Fcontributing\u002Fupdate-rules","contributing\u002F2.update-rules",{"title":185,"path":186,"stem":187},"Content components","\u002Fcontributing\u002Fcomponents","contributing\u002Fcomponents",{"title":189,"path":190,"stem":191,"children":192},"Core","\u002Fcore","core",[193,195,208,237],{"title":155,"path":190,"stem":194},"core\u002Findex",{"title":196,"path":197,"stem":198,"children":199,"page":141},"Getting Started","\u002Fcore\u002Fgetting-started","core\u002F1.getting-started",[200,204],{"title":201,"path":202,"stem":203},"Installation","\u002Fcore\u002Fgetting-started\u002Finstallation","core\u002F1.getting-started\u002F1.installation",{"title":205,"path":206,"stem":207},"First use","\u002Fcore\u002Fgetting-started\u002Ffirst-use","core\u002F1.getting-started\u002F2.first-use",{"title":209,"path":210,"stem":211,"children":212,"page":141},"Guides","\u002Fcore\u002Fguides","core\u002F2.guides",[213,217,221,225,229,233],{"title":214,"path":215,"stem":216},"Parsing and validating","\u002Fcore\u002Fguides\u002Fparsing-and-validating","core\u002F2.guides\u002F1.parsing-and-validating",{"title":218,"path":219,"stem":220},"Serializing and sharing","\u002Fcore\u002Fguides\u002Fserializing-and-sharing","core\u002F2.guides\u002F2.serializing-and-sharing",{"title":222,"path":223,"stem":224},"Unit conversion","\u002Fcore\u002Fguides\u002Funit-conversion","core\u002F2.guides\u002F3.unit-conversion",{"title":226,"path":227,"stem":228},"Vocabularies and textures","\u002Fcore\u002Fguides\u002Fvocabularies-and-textures","core\u002F2.guides\u002F4.vocabularies-and-textures",{"title":230,"path":231,"stem":232},"Water quality vocabulary","\u002Fcore\u002Fguides\u002Fwater-quality-vocabulary","core\u002F2.guides\u002F5.water-quality-vocabulary",{"title":234,"path":235,"stem":236},"Versions and time zones","\u002Fcore\u002Fguides\u002Fversions-and-time-zones","core\u002F2.guides\u002F6.versions-and-time-zones",{"title":238,"path":239,"stem":240,"children":241},"API reference","\u002Fcore\u002Fapi","core\u002Fapi\u002Findex",[242],{"title":238,"path":239,"stem":240},{"title":244,"path":245,"stem":246,"children":247},"Format","\u002Fformat","format",[248,250,270,299,323,343,349],{"title":155,"path":245,"stem":249},"format\u002Findex",{"title":196,"path":251,"stem":252,"children":253,"page":141},"\u002Fformat\u002Fgetting-started","format\u002F1.getting-started",[254,258,262,266],{"title":255,"path":256,"stem":257},"What is .well?","\u002Fformat\u002Fgetting-started\u002Fwhat-is-well","format\u002F1.getting-started\u002F1.what-is-well",{"title":259,"path":260,"stem":261},"For geologists","\u002Fformat\u002Fgetting-started\u002Ffor-geologists","format\u002F1.getting-started\u002F2.for-geologists",{"title":263,"path":264,"stem":265},"For developers","\u002Fformat\u002Fgetting-started\u002Ffor-developers","format\u002F1.getting-started\u002F3.for-developers",{"title":267,"path":268,"stem":269},"Your first .well file","\u002Fformat\u002Fgetting-started\u002Ffirst-well-file","format\u002F1.getting-started\u002F4.first-well-file",{"title":271,"path":272,"stem":273,"children":274,"page":141},"Concepts","\u002Fformat\u002Fconcepts","format\u002F2.concepts",[275,279,283,287,291,295],{"title":276,"path":277,"stem":278},"Depths and intervals","\u002Fformat\u002Fconcepts\u002Fdepths-and-intervals","format\u002F2.concepts\u002F1.depths-and-intervals",{"title":280,"path":281,"stem":282},"Units and precision","\u002Fformat\u002Fconcepts\u002Funits-and-precision","format\u002F2.concepts\u002F2.units-and-precision",{"title":284,"path":285,"stem":286},"Vocabularies","\u002Fformat\u002Fconcepts\u002Fvocabularies","format\u002F2.concepts\u002F3.vocabularies",{"title":288,"path":289,"stem":290},"Profiles","\u002Fformat\u002Fconcepts\u002Fprofiles","format\u002F2.concepts\u002F4.profiles",{"title":292,"path":293,"stem":294},"Versions and deprecation","\u002Fformat\u002Fconcepts\u002Fversions-and-deprecation","format\u002F2.concepts\u002F5.versions-and-deprecation",{"title":296,"path":297,"stem":298},"Extensibility","\u002Fformat\u002Fconcepts\u002Fextensibility","format\u002F2.concepts\u002F6.extensibility",{"title":209,"path":300,"stem":301,"children":302,"page":141},"\u002Fformat\u002Fguides","format\u002F3.guides",[303,307,311,315,319],{"title":304,"path":305,"stem":306},"Writing a .well by hand","\u002Fformat\u002Fguides\u002Fwriting-by-hand","format\u002F3.guides\u002F1.writing-by-hand",{"title":308,"path":309,"stem":310},"Converting a report","\u002Fformat\u002Fguides\u002Fconverting-a-report","format\u002F3.guides\u002F2.converting-a-report",{"title":312,"path":313,"stem":314},"Validating","\u002Fformat\u002Fguides\u002Fvalidating","format\u002F3.guides\u002F3.validating",{"title":316,"path":317,"stem":318},"Extending for your own needs","\u002Fformat\u002Fguides\u002Fextending","format\u002F3.guides\u002F4.extending",{"title":320,"path":321,"stem":322},"Building an editor or database on .well","\u002Fformat\u002Fguides\u002Fbuilding-on-well","format\u002F3.guides\u002F5.building-on-well",{"title":324,"path":325,"stem":326,"children":327},"Overview","\u002Fformat\u002Freference","format\u002F4.reference\u002Findex",[328,329,333,337],{"title":324,"path":325,"stem":326},{"title":330,"path":331,"stem":332},"JSON Schema","\u002Fformat\u002Freference\u002Fjson-schema","format\u002F4.reference\u002F1.json-schema",{"title":334,"path":335,"stem":336},"Example wells","\u002Fformat\u002Freference\u002Fexamples","format\u002F4.reference\u002F2.examples",{"title":338,"path":339,"stem":340,"children":341},"Object reference","\u002Fformat\u002Freference\u002Fobjects","format\u002Freference\u002Fobjects\u002Findex",[342],{"title":338,"path":339,"stem":340},{"title":344,"path":345,"stem":346,"children":347},"About the spec","\u002Fformat\u002Fspec","format\u002F5.spec\u002Findex",[348],{"title":344,"path":345,"stem":346},{"title":350,"path":351,"stem":352},"Changelog","\u002Fformat\u002Fchangelog","format\u002F6.changelog",{"title":354,"path":355,"stem":356,"children":357},"Render","\u002Frender","render",[358,360,370,402],{"title":155,"path":355,"stem":359},"render\u002Findex",{"title":196,"path":361,"stem":362,"children":363,"page":141},"\u002Frender\u002Fgetting-started","render\u002F1.getting-started",[364,367],{"title":201,"path":365,"stem":366},"\u002Frender\u002Fgetting-started\u002Finstallation","render\u002F1.getting-started\u002F1.installation",{"title":205,"path":368,"stem":369},"\u002Frender\u002Fgetting-started\u002Ffirst-use","render\u002F1.getting-started\u002F2.first-use",{"title":209,"path":371,"stem":372,"children":373,"page":141},"\u002Frender\u002Fguides","render\u002F2.guides",[374,378,382,386,390,394,398],{"title":375,"path":376,"stem":377},"Panels and layout","\u002Frender\u002Fguides\u002Fpanels-and-layout","render\u002F2.guides\u002F1.panels-and-layout",{"title":379,"path":380,"stem":381},"Layers and labels","\u002Frender\u002Fguides\u002Flayers-and-labels","render\u002F2.guides\u002F2.layers-and-labels",{"title":383,"path":384,"stem":385},"Theming","\u002Frender\u002Fguides\u002Ftheming","render\u002F2.guides\u002F3.theming",{"title":387,"path":388,"stem":389},"Locale and units","\u002Frender\u002Fguides\u002Flocale-and-units","render\u002F2.guides\u002F4.locale-and-units",{"title":391,"path":392,"stem":393},"Legends","\u002Frender\u002Fguides\u002Flegends","render\u002F2.guides\u002F5.legends",{"title":395,"path":396,"stem":397},"Zoom, pan and highlights","\u002Frender\u002Fguides\u002Finteraction","render\u002F2.guides\u002F6.interaction",{"title":399,"path":400,"stem":401},"Using it in a framework","\u002Frender\u002Fguides\u002Fframeworks","render\u002F2.guides\u002F7.frameworks",{"title":238,"path":403,"stem":404,"children":405},"\u002Frender\u002Fapi","render\u002Fapi\u002Findex",[406],{"title":238,"path":403,"stem":404},{"title":408,"path":409,"stem":410,"children":411},"Utils","\u002Futils","utils",[412,414,424,460],{"title":155,"path":409,"stem":413},"utils\u002Findex",{"title":196,"path":415,"stem":416,"children":417,"page":141},"\u002Futils\u002Fgetting-started","utils\u002F1.getting-started",[418,421],{"title":201,"path":419,"stem":420},"\u002Futils\u002Fgetting-started\u002Finstallation","utils\u002F1.getting-started\u002F1.installation",{"title":205,"path":422,"stem":423},"\u002Futils\u002Fgetting-started\u002Ffirst-use","utils\u002F1.getting-started\u002F2.first-use",{"title":209,"path":425,"stem":426,"children":427,"page":141},"\u002Futils\u002Fguides","utils\u002F2.guides",[428,432,436,440,444,448,452,456],{"title":429,"path":430,"stem":431},"Geometry and volumes","\u002Futils\u002Fguides\u002Fgeometry-and-volumes","utils\u002F2.guides\u002F1.geometry-and-volumes",{"title":433,"path":434,"stem":435},"Water levels and pumping tests","\u002Futils\u002Fguides\u002Fpumping-tests","utils\u002F2.guides\u002F2.pumping-tests",{"title":437,"path":438,"stem":439},"Permits","\u002Futils\u002Fguides\u002Fpermits","utils\u002F2.guides\u002F3.permits",{"title":441,"path":442,"stem":443},"Operation and production","\u002Futils\u002Fguides\u002Foperation","utils\u002F2.guides\u002F4.operation",{"title":445,"path":446,"stem":447},"Water quality","\u002Futils\u002Fguides\u002Fwater-quality","utils\u002F2.guides\u002F5.water-quality",{"title":449,"path":450,"stem":451},"Logger import","\u002Futils\u002Fguides\u002Flogger-import","utils\u002F2.guides\u002F6.logger-import",{"title":453,"path":454,"stem":455},"SIAGAS import","\u002Futils\u002Fguides\u002Fsiagas-import","utils\u002F2.guides\u002F7.siagas-import",{"title":457,"path":458,"stem":459},"Formatting","\u002Futils\u002Fguides\u002Fformatting","utils\u002F2.guides\u002F8.formatting",{"title":238,"path":461,"stem":462,"children":463},"\u002Futils\u002Fapi","utils\u002Fapi\u002Findex",[464],{"title":238,"path":461,"stem":462},[466],{"title":244,"path":245,"stem":246,"children":467,"page":141},[468],{"title":469,"path":345,"stem":470,"children":471,"page":141},"Spec","format\u002Fspec",[472,481,490],{"title":473,"path":474,"stem":475,"children":476,"page":141},"Reference","\u002Fformat\u002Fspec\u002Freference","format\u002Fspec\u002Freference",[477],{"title":478,"path":479,"stem":480},"FGDC Texture Patterns Reference","\u002Fformat\u002Fspec\u002Freference\u002Ffgdc-textures","format\u002Fspec\u002Freference\u002Ffgdc-textures",{"title":482,"path":483,"stem":484,"children":485,"page":141},"V1","\u002Fformat\u002Fspec\u002Fv1","format\u002Fspec\u002Fv1",[486],{"title":487,"path":488,"stem":489},".well File Format Specification","\u002Fformat\u002Fspec\u002Fv1\u002Fwell-format","format\u002Fspec\u002Fv1\u002Fwell-format",{"title":491,"path":492,"stem":493,"children":494,"page":141},"V2","\u002Fformat\u002Fspec\u002Fv2","format\u002Fspec\u002Fv2",[495,499,503,507,511],{"title":496,"path":497,"stem":498},".well File Format Specification — Version 2.4: Format Reference","\u002Fformat\u002Fspec\u002Fv2\u002Fformat-reference","format\u002Fspec\u002Fv2\u002Fformat-reference",{"title":500,"path":501,"stem":502},".well File Format Specification — Version 2.4: Interoperability","\u002Fformat\u002Fspec\u002Fv2\u002Finteroperability","format\u002Fspec\u002Fv2\u002Finteroperability",{"title":504,"path":505,"stem":506},".well File Format Specification — Version 2.4: Object Schemas","\u002Fformat\u002Fspec\u002Fv2\u002Fobject-schemas","format\u002Fspec\u002Fv2\u002Fobject-schemas",{"title":508,"path":509,"stem":510},".well File Format Specification — Version 2.4: Overview","\u002Fformat\u002Fspec\u002Fv2\u002Foverview","format\u002Fspec\u002Fv2\u002Foverview",{"title":512,"path":513,"stem":514},".well File Format Specification — Version 2.4: Water Quality","\u002Fformat\u002Fspec\u002Fv2\u002Fwater-quality","format\u002Fspec\u002Fv2\u002Fwater-quality",[516,522,528],{"title":189,"path":190,"stem":191,"children":517,"page":141},[518],{"title":519,"path":520,"stem":521},"@welldot\u002Fcore","\u002Fcore\u002Fchangelog","core\u002FCHANGELOG",{"title":354,"path":355,"stem":356,"children":523,"page":141},[524],{"title":525,"path":526,"stem":527},"@welldot\u002Frender","\u002Frender\u002Fchangelog","render\u002FCHANGELOG",{"title":408,"path":409,"stem":410,"children":529,"page":141},[530],{"title":531,"path":532,"stem":533},"@welldot\u002Futils","\u002Futils\u002Fchangelog","utils\u002FCHANGELOG",1793050506243]