You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My registered API via loadPath returns all translation keys in a nested "data" object.
i.e
{
"data": {
"key1": "foo",
"key2: "bar"
}
}
This forces me to use "data" like a namespace. i.e `t("data.mykey")". though it is not a namespace, it is just because I am not in control of the translation API.
Is there a way to always return a sub object of the JSON payload?
Lately I would like to use t("key1") instead of multiple t("data.key1") or t("data.key2").
The text was updated successfully, but these errors were encountered:
My registered API via
loadPath
returns all translation keys in a nested "data" object.i.e
This forces me to use "data" like a namespace. i.e `t("data.mykey")". though it is not a namespace, it is just because I am not in control of the translation API.
Is there a way to always return a sub object of the JSON payload?
Lately I would like to use
t("key1")
instead of multiplet("data.key1")
ort("data.key2")
.The text was updated successfully, but these errors were encountered: