Function: getLocalizedData()
getLocalizedData<
TOpt
,Ns
,KPrefix
>(key
:string
):LocalizedData
Gets the value and the localizations from a language key.
Type Parameters
Type Parameter | Default type |
---|---|
TOpt extends TOptions | TOptions |
Ns extends Namespace | "translation" |
KPrefix | undefined |
Parameters
Parameter | Type | Description |
---|---|---|
key | string | The key to get the localizations from. |
Returns
The retrieved data.
Remarks
This should be called strictly after loading the locales.