add locale length option for i18n behavior
Merge pull request #646 from csanquer/i18n_locale_length

add locale length option for i18n behavior