Fix issue with locale extract metho

Currently, only two letters were extracter. Thus, for tr-TR, we returned only tr and the page was not found.