Type Alias HostStringResolver
HostStringResolver: (
key: string,
component: string,
lng: string,
) => Promise<string>
Type Declaration
- (key: string, component: string, lng: string): Promise<string>
Parameters
- key: string
- component: string
- lng: string
Returns Promise<string>
Host string resolver registry.
Hosts (Moodle, WordPress) inject a per-key async resolver so the client can lazily fetch ONE string at a time (e.g. Moodle get_string(key, component)). Never preloads the host catalog. See useHostString for the consumption hook.