Move apply_locale to Locale class