Skip to content

Text Bridge

Reference

DaisyConfig stores text. DaisyCore still renders it. The bridge exists to preserve that boundary.

Loads a config-backed text source from YAML.

Required

Exposes the loaded text data in the shape DaisyCore expects.

Required

Exposes module-backed lang data from DaisyModuleHandle<S>.

Optional

messages object

Installs the text source into DaisyCore for viewer-aware rendering.

Required

textLang string

Resolves shared language keys through DaisyCore once the text source is installed.

Optional

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.