Finding missing and unused i18next keys in a React project
A translation key is a string nobody checks. Here is how to check it by hand, in the IDE and in CI. {t('checkout.pay_nwo')} The build passes and so do the tests. In production, the button reads checkout.pay_nwo. My own start with translation keys was a migration. An existing application was going international, so every text in the code had to move into JSON files, in French, English, Spanish and Italian. Carrying all of that over by hand was the hardest part of the job. It also left me with fo…