Text Bridge
Text Bridge
Section titled “Text Bridge”Reference
DaisyConfig stores text. DaisyCore still renders it. The bridge exists to preserve that boundary.
yamlTextConfigHandle object Loads a config-backed text source from YAML.
asDaisyTextSource object Exposes the loaded text data in the shape DaisyCore expects.
textSource object Exposes module-backed lang data from DaisyModuleHandle<S>.
messages object Installs the text source into DaisyCore for viewer-aware rendering.
textLang string Resolves shared language keys through DaisyCore once the text source is installed.
val langHandle = yamlTextConfigHandle(plugin, "lang.yml")
val daisy = DaisyPlatform.create(plugin) { messages(langHandle.current.asDaisyTextSource()) }Managed lang files are still data. Placeholder-aware rendering still happens in DaisyCore, not DaisyConfig.