I18nice

Latest version: v0.15.5

Safety actively analyzes 639495 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

0.12.0

- Added `use_locale_dirs` setting
- Improved file search
- Config reloading is now more consistent

0.11.1

- Fixed 25
- (pb) Invalid placeholders will always emit an error

0.11.0

- Added `py.typed`
- Added `_list` kwarg to `t` (only for type checkers)
- **(B)** `fallback` is now `None` by default
- (pb) Setting `locale` and `fallback` to the same value will now result in `fallback` being `None`
- Error thrown on missing translation now mentions the locale
- Missing translation is now reported with requested locale instead of fallback one
- Minor optimizations

0.10.0

- Simplified static refs pattern
- Added support for braceless placeholders and escaped delimiters
- (pb) If a function registered with `i18n.add_function` raises `KeyError`, it will be reraised instead of being treated as a missing placeholder

0.9.1

- Fixed links on PyPI

0.9.0

- **(B)** Removed `default=` kwarg of `i18n.t()`. You can work around this change with a custom handler [like this](https://github.com/solaluset/i18nice/blob/01ed6bcd2234998b411f07c92c31639e719dbabb/i18n/tests/translation_tests.py#L147)
- Added docstrings to public API
- Added `__all__` to most files
- Added support for `None` as `fallback`
- (pb) Made memoization enabled by default
- Added `lock=` kwarg to `load_everything()`

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.