Refactor Locale component to I18n