gets locale from first dir
If key is not present on locales list, it sets to the default