Skip to main content

LoadNLSBundle

pub async fn LoadNLSBundle(
    RunTime: &Arc<ApplicationRunTime>,
    ExtensionPath: &PathBuf,
    PlaceholdersNeeded: bool,
) -> Option<Map<String, Value>>
Expand description

Load an extension’s NLS bundle (package.nls.json) into a {key → string} map. Returns None if absent or unreadable - placeholders remain as-is. Entries can be bare strings or {message, comment} objects; only message is kept. The PlaceholdersNeeded flag downgrades the “no bundle” warning when the manifest has no %placeholder% entries (absence is benign).