- Bug fix
- fallback bug when key does not exist on non default language #1 (by @werkzeugh)
- Enhancements
- Code refactor
- Update dependencies
- Breaking changes:
- Remove HTTP loader
- Enhancements
- Allow passing mfa for
path
option. - Format code.
- Allow passing mfa for
- Enhancements
- Add InchCi badge and update docs.
- Small code refactor for loaders and translation function.
- Enhancements
- Add
HTTP
loader that will fetch translations from provided API. - Add
loader_options
configuration option. - Update README with available loaders and configuration options.
- Add
- Breaking changes
- Rename
storage
option toloader
. - Rename
compile_suffix/prefix
option tovar_suffix/prefix
.
- Rename
- Enhancements
- Add changelog.
- Bug fix
- Fix bug for missing translation on defuault locale when translation is empty and we want to fallback to default locale. It would return nil instead of raising error.
- Bug fixes
- Change default value for
fallback
to false.
- Change default value for
- Enhancements
- Add
fallback
configuration option. - If
fallback
option is true when translation for key is empty it will fallback to default translation.
- Add
- Enhancements
- Add
compile_prefix
,compile_suffix
andlocales
configuration options. - Add default values for all configuration options.
- Check if passed locale is supported if not fallback to default locale.
- Add
- Enhancements
- Add
Cache
module that usesGenServer
that manage ETS table and retriving translations. - Handle
yamler
error that cause app to crash when file is missing. Now it will raise error.
- Add
- Enhancements
- Add
Compiler
module that handles variables interpolation into translation texts. - Change ETS table namespace
- Instead of trying to create ETS table every time and rescue error, just check if exists.
- Add
- Enhancements
- Documentation/Readme update.
- Enhancements
- Add
default_locale
,path
andstorage
configuration options. - Load translations from yaml files.
- Raise errors on missing translation or incomplete path.
- Store locales in ETS table.
- Add