This fix adds locale support to library

There was no way to change request locale earlier.