fix i18n:Locale context manager methods