@hydroperx/pi / react / PILayer
Defined in: src/react/index.tsx:12
Wraps a PI instance from the @hydroperx/pi module,
with an unique identity.
new PILayer(
pi):PILayer
Defined in: src/react/index.tsx:31
Constructor.
If null, then accessing the pi property
throws a ReferenceError.
PI | null
PILayer
get identity():
number[]
Defined in: src/react/index.tsx:38
Returns the unique identity of this layer.
number[]
get pi():
PI
Defined in: src/react/index.tsx:48
Returns the underlying PI instance from the
@hydroperx/pi module. This PI instance
provides further locale properties and operations like
locales, currentLocale and supportsLocale().
get(
id,args,errors):string|null
Defined in: src/react/index.tsx:61
Retrieves message and formats it. Returns null if undefined.
Look at @fluent/bundle
for FluentVariable.
string
Record<string, FluentVariable> | undefined
Error[] | null
string | null
has(
id):boolean
Defined in: src/react/index.tsx:72
Determines if a message is defined.
string
boolean