Make the translations.js file depend on changes in the locales folder

Automatically re-generate the translations when the locales are edited.