### Build Localization Bundle Source: https://github.com/kgv/bevy_fluent/blob/main/doc/en-US.md Create a localization bundle fallback chain using LocalizationBuilder and loaded asset handles. ```rust let localization = localization_builder.build(handles); ``` -------------------------------- ### Request Content from Bundle or Localization Source: https://github.com/kgv/bevy_fluent/blob/main/doc/en-US.md Request formatted content for a given key from either a bundle asset or a localization object. ```rust let hello_world = bundle_asset.content("hello-world")?; let hello_world = localization.content("hello-world")?; ``` -------------------------------- ### Load Asset with AssetServer Source: https://github.com/kgv/bevy_fluent/blob/main/doc/en-US.md Use AssetServer to load a single localization asset. ```rust let handle = asset_server.load("locales/en-US/main.ftl.ron"); ``` -------------------------------- ### Load Glob Assets with AssetServerExt Source: https://github.com/kgv/bevy_fluent/blob/main/doc/en-US.md Use AssetServerExt to load multiple localization assets matching a glob pattern. Requires importing AssetServerExt. ```rust use bevy_fluent::exts::bevy::AssetServerExt; let handles = asset_server.load_glob("locales/**/main.ftl.ron")?; ``` -------------------------------- ### Check Asset Load State Source: https://github.com/kgv/bevy_fluent/blob/main/doc/en-US.md Check if a single asset has finished loading using its handle. ```rust if let LoadState::Loaded = asset_server.get_load_state(handle) { ... } ``` -------------------------------- ### Check Group Asset Load State Source: https://github.com/kgv/bevy_fluent/blob/main/doc/en-US.md Check if a group of assets has finished loading using their handles. ```rust if let LoadState::Loaded = asset_server.get_group_load_state(handles) { ... } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.