ioulian / next-io-ghent-starter

Next.js starter kit for iO Ghent
https://ioulian.github.io/next-io-ghent-starter/
4 stars 0 forks source link

Add typing for the i18n next labels #1

Closed nantvermeulen closed 2 years ago

nantvermeulen commented 2 years ago

It's possible to add typechecking for the i18n labels. You just need to define which files that should be used for type checking. Example: mijnenergie-kbc In mijnenergie-kbc I also added a node script which checks if the translation files aren't missing any keys. This script is currently for just 2 languages but could be easily expanded based on the needs.

ioulian commented 2 years ago

Has been implemented