Currently, I am actively engaged in a project that involves the use of i18next with react and typescript. In this project, translation keys are defined within .json files.
However, a notable drawback of transitioning to json for the translation files is losing the convenience of utilizing IntelliJ IDEA's "Go to declaration" or ctrl + left-click function. This feature previously allowed for easy navigation from a key usage in typescript to its corresponding declaration in the json file.
Is there a method available to re-enable this functionality without necessitating all developers to download an external IntelliJ plugin?
I have spent significant time searching online for any potential solutions to this issue.
In an effort to enhance the type safety of where translation keys are utilized, I created a d.ts file. It is puzzling how IntelliJ/Typescript can detect when a key is missing and issue warnings, yet it struggles to pinpoint the exact location of a valid key when entered.
Moreover, I have configured resolveJsonModule:true within tsconfig, but my limited knowledge suggests that this setting may not be relevant to the current dilemma.