1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Per-flow locale handle: which `LineTablesAsset` a flow renders against.
use PhantomData;
use Handle;
use Component;
use crateLineTablesAsset;
/// The active locale for a flow — a handle to the `LineTablesAsset`
/// whose strings and slot templates render this flow's output.
///
/// Inserted by `fulfill_flow_requests` alongside `BrinkProgram<M>`,
/// typically as part of the `BrinkStory<M>` bundle. To swap locale,
/// assign a different `Handle<LineTablesAsset>`; consumers can detect
/// the swap with `Changed<BrinkLocale<M>>` and re-render the flow's
/// transcript against the new tables (the runtime's transcript stores
/// structural references, not resolved strings).
///
/// Note: hot-reload of the *content* of an existing handle does NOT
/// fire `Changed` — Bevy's asset system updates the slot in place, so
/// the handle is stable. That path is signalled by
/// `AssetEvent::Modified<LineTablesAsset>` instead.