new locale api