set locale in the worker based on passed param