Function: fetchT()
fetchT(
target
:Target
):Promise
<TFunction
<"translation"
,undefined
>>
Defined in: projects/plugins/packages/i18next/src/lib/functions.ts:74
Retrieves the language-assigned function from i18next designated to a target's preferred language code.
Parameters
Parameter | Type | Description |
---|---|---|
target | Target | The target to fetch the language from. |
Returns
Promise
<TFunction
<"translation"
, undefined
>>
The language function from i18next.
Since
2.0.0