Added the I18n object
Added the load_dir method
Added a check to ensure locale is not empty or null