Allow direct import of JSON files #151
Replies: 3 comments 5 replies
-
With this change the JSON imports would work: |
Beta Was this translation helpful? Give feedback.
-
Hi @derkoe, To support migrating from traditional i18n libraries and services, |
Beta Was this translation helpful? Give feedback.
-
support for (in-)direct imports of JSON files was added in version |
Beta Was this translation helpful? Give feedback.
-
Would be great to use JSON files directly as a source. This will make integrating translation tools easier.
This is best understood with an example:
src/i18n/en/index.ts
:src/i18n/en/texts.json
:Currently, when you do this you'll get the following error:
Beta Was this translation helpful? Give feedback.
All reactions