createSvelteFluent

Create a new SvelteFluent object using the specified fluent bundles.

const fluent = createSvelteFluent(bundles, options);

Parameters

NameTypeDescription
bundlesFluentBundle[]Defines the fluent bundles to be be used for localization
options{onError: (msg: string) => void}Options

Return value

The SvelteFluent object.