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

add locale length option for i18n behavior