{"id":"ui--yuiLocaleModel","name":"yuiLocaleModel","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiLocaleModel","description":"A yui locale model record carrying properties, diagnostic.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"properties","kind":"field","type":"list of yuiLocaleProperty","description":"Stores properties as list of yuiLocaleProperty.","signature":"list of yuiLocaleProperty properties","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"diagnostic","kind":"field","type":"text","description":"Stores diagnostic as text.","signature":"text diagnostic","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiLocaleModel","kind":"constructor","parameters":[],"returns":"void","signature":"yuiLocaleModel()","description":"Yui locale model.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"Register","kind":"method","parameters":[{"name":"tree","type":"yuiTree","description":"Tree."},{"name":"property","type":"yuiLocaleProperty","description":"Property."}],"returns":"bool","signature":"Register(yuiTree tree, yuiLocaleProperty property) returns bool","description":"Register.","tags":["thing","method","ui"],"exampleId":"method-Register-3","updated":"2026-09-09"},{"name":"Resolve","kind":"method","parameters":[{"name":"tree","type":"yuiTree","description":"Tree."},{"name":"nodeId","type":"text","description":"Node id."}],"returns":"yuiLocaleProperty","signature":"Resolve(yuiTree tree, text nodeId) returns yuiLocaleProperty","description":"Resolve.","tags":["thing","method","ui"],"exampleId":"method-Resolve-4","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/text-locale.yh","line":50,"sha256":"f94675a021e536a25eeecbefd67a1e88ba3c63fddf46ace8e10a80b7140bff2a"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use yuiLocaleModel","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using ui\n\n// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.\nyuiLocaleModel sample = yuiLocaleModel()\nConsole.Log(Text.From(sample.diagnostic))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuilocalemodel\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"8d60d76749859ee00202568f0d8a0303a1082d4110c0bf7f9eedd17d0ea48d1f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Register-3","title":"yuiLocaleModel.Register","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Register.\nyuiLocaleModel instance = yuiLocaleModel()\nyuiTree argument_tree = yuiTree(\"id\")\nyuiLocaleProperty argument_property = yuiLocaleProperty(\"node Id\", \"locale\", \"language\", \"direction\", \"line Break\", \"numeral System\", \"example\")\nbool result = instance.Register(argument_tree, argument_property)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuilocalemodel\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"4f7b64bc48f5a00e4ac01a7919705a47447e210de851773f972811dabfbb0edb","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Resolve-4","title":"yuiLocaleModel.Resolve","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Resolve.\nyuiLocaleModel instance = yuiLocaleModel()\nyuiTree argument_tree = yuiTree(\"id\")\ntext argument_nodeId = \"argument node Id\"\nyuiLocaleProperty result = instance.Resolve(argument_tree, argument_nodeId)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuilocalemodel\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"2b0fd411a71a316009947f1e96da6b917912ce44077f5f4d4ef2a3803a1c09d7","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["properties","diagnostic","yuiLocaleModel","Register","Resolve"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiLocaleModel","json":"https://demonhunterlabs.com/reference/items/ui--yuiLocaleModel.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiLocaleModel.md"}
