Added ability to define locales directory on plugin configuration