fixed guard regex to support locales with more than two letters 

This is a small fix that allows translations for locales that have more than two letters (e.g.: zh-TW, it-CH).