Functionalize locale swapping.