API Added ability to temporarily change the locale for simple tasks