set locale both in main and task