Add basic locale hook