My JSON file is this:
{
"errors": {
"missing_permissions:can_trade": "lorem ipsum"
}
}
I then try to access this translation with the following but none work:
t(`errors.missing_permissions:can_trade`)
t(`errors['missing_permissions:can_trade']`)
Anyway to access this?
I18next has a special meaning for
colon
- indicates a namespace.you can tell it to ignore the colon in the key by passing
{ nsSeparator: false }
.