Skip to main content
method FluentBundle.prototype.addResource
import { FluentBundle } from "https://deno.land/x/fluent@0.0.1/bundle/bundle.ts";

Add a translation resource to the bundle.

Examples

Example 1

let res = new FluentResource("foo = Foo");
bundle.addResource(res);
bundle.getMessage("foo");
// → {value: .., attributes: {..}}

Parameters

optional
unnamed 1: { allowOverrides?: boolean; } = [UNSUPPORTED]

Returns

Array<Error>