Replies: 1 comment
-
I think I have figured it out. Not sure what was going wrong with my Typescript but an clean install removed my issues. with this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I'm using
i18Next
, in a component/modular project. So I've declared the i18Next module typings with my resources, however I would like to have dynamic typing. Is that possible in a.d.ts
?So heres what I have:
(in my i18n module)
What I am trying to achieve:
I have defined my
i18n
module, and exposed thei18Next
functions to the project. I have then used the above typing to define the resources as per thei18Next
documentation.I have then developed another module (
client
), which is dependant on i18n, and calls thei18Next
functionality.The client module wants to define it's own resources for use. So it does via the
addResources()
function from thei18Next
.Now if I call
i18Next.t()
it will show me my options as per the above declaration, but wont include myclient
modules resources.What I have tried:
Tried creating a
.d.ts
file in theclient
module which adds the new resources, but I only get the ones from thei18n
module.Any advice really appreciated
Beta Was this translation helpful? Give feedback.
All reactions