createSvelteFluent
Create a new SvelteFluent object using the specified fluent bundles.
const fluent = createSvelteFluent(bundles, options);
Parameters
Name | Type | Description |
---|---|---|
bundles | FluentBundle[] | Defines the fluent bundles to be be used for localization |
options | {onError: (msg: string) => void} | Options |
Return value
The SvelteFluent object.