set locale to avoid uninitialized cms variable in the twig file