Adds locale detection to casing functions.