Update i18n check to work with JSON

Additionally add pre-commit check to run check-i18n

Change-Id: I4b932a7c82d3b8f7e9dc0fbe57f39cd48da844ee