Open AlbertSmit opened 2 years ago
I would also love to see this configuration added! I'm using react-i18next
but have a custom hook that abstracts useTranslation
, so would like to be able to set the scope text that getScopeRange
is looking for to a custom value.
Is your feature related to a specific framework or general for this extension Sort of, it's for
Custom
.Is your feature request related to a problem? Please describe. We have a custom hook to set namespaces, much like
i18next
'suseTranslation
hook, except named differently. Essentially, it just concat's the strings, and looks it up in a file with keys.Example pseudo-code given:
Describe the solution you'd like I'd like to be able to pass on a regex string in the config to indicate to look for this hook. I see in the
frameworks
folder thati18next
practically has this setup (getScopeRange
). Having it be configurable with regex would be a great addition!Example RegExp given: