added locale support, mainly for datetime formatting, no translations