Skip to main content
Latest
class Scope
import { Scope } from "https://deno.land/x/fluent@0.0.1/bundle/mod.ts";

Constructors

new
Scope(
bundle: FluentBundle,
errors: Array<Error> | null,
args: Record<string, FluentVariable> | null,
)

Properties

args: Record<string, FluentVariable> | null

A dict of developer-provided variables.

bundle: FluentBundle

The bundle for which the given resolution is happening.

errors: Array<Error> | null

The list of errors collected while resolving.

params: Record<string, FluentVariable> | null

A dict of parameters passed to a TermReference.

Methods

memoizeIntlObject(ctor: Intl.NumberFormat, opts: Intl.NumberFormatOptions): Intl.NumberFormat
memoizeIntlObject(ctor: Intl.PluralRules, opts: Intl.PluralRulesOptions): Intl.PluralRules
reportError(error: unknown): void