Both methods effectively do the same thing:
- Record what the current locale is
- Set the locale to the specified locale
- Run the provided block of code
- Set the locale back to the recorded locale
I18n will fetch translations from its locale files, whereas globalize will fetch translations from its database store.