Function: fetchT()
fetchT(
target
:Target
):Promise
<TFunction
<"translation"
,undefined
>>
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