Support locales with up to 5 characters

Some locales have uppercase letters and hyphen. I changed the regex to support those locales.

Example: https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/pt-BR.yml