Skip to content

ResourceStore.getResource method

ResourceStore › getResource

Unofficial

Gets a single resource value.

Signature:

getResource(lng: string, ns: string, key: string, options?: GetResourceOptions | undefined): unknown

Parameters:

Parameter Type Description
lng string Language code.
ns string Namespace.
key string Resource key.
options? GetResourceOptions | undefined Additional options including keySeparator.

Returns: unknownThe resource value.