forked from danhper/python-i18n
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from Krutyi-4el/develop
Version 0.9.0
- Loading branch information
Showing
18 changed files
with
391 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
## Note: **(B)** = BREAKING, (pb) = potentially breaking | ||
|
||
### Hint: use `https://github.com/Krutyi-4el/i18nice/compare/v<version 1 (older)>...v<version 2 (newer)>` to see full code difference between versions | ||
|
||
### v0.9.0 | ||
- **(B)** Removed `default=` kwarg of `i18n.t()`. You can work around this change with a custom handler [like this](https://github.com/Krutyi-4el/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()` | ||
|
||
### v0.8.1 | ||
- Added flake8 and mypy checks | ||
- Enabled and ensured branch coverage | ||
- Added `__all__` to packages | ||
- Added more type hints | ||
- Fixed static references not expanding | ||
- Fixed strict pluralization with translation tuples | ||
- Created `dev-helper.py` for pre-commit and GA | ||
- Made `PythonLoader` throw more verbose error | ||
|
||
### v0.8.0 | ||
- (pb) `i18n.get("filename_format")` will return `FilenameFormat` instead of string. You can access `template` attribute to get the original string. `set` will continue to work as usual. | ||
- More flexible filename formats | ||
- Type hints for public APIs | ||
- New functions `load_everything` and `unload_everything` | ||
- 100% coverage | ||
- Minor optimizations | ||
|
||
### v0.7.0 | ||
- Added static references feature | ||
- Added full translation list support | ||
|
||
### v0.6.2 | ||
- Added PyPI publishing | ||
|
||
## Note: versions listed below aren't available on PyPI | ||
|
||
### v0.6.0 | ||
- (pb) Switched to `yaml.BaseLoader` | ||
|
||
### v0.5.1 | ||
- Improved memoization (again) | ||
|
||
### v0.5.0 | ||
- Rewrote `PythonLoader` | ||
- **(B)** Removed old `error_on_missing_*` settings | ||
- Improved memoization | ||
- Improved file loading and fixed bugs | ||
- Improved exceptions | ||
- Added `reload_everything()` | ||
- **(B)** Removed deprecated `other` plural | ||
|
||
### v0.4.0 | ||
- Trying to set inexistent setting will now raise KeyError | ||
- Added custom functions | ||
- Fixed settings not updating properly | ||
- **(B)** Dropped Python 2 | ||
- Added `on_missing_*` hooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
I appreciate your desire to contribute to this project | ||
|
||
Here's a basic instruction on how to do it: | ||
|
||
1. Fork my repository on GitHub | ||
|
||
2. Clone your fork locally: | ||
|
||
`git clone https://github.com/<your username>/i18nice` | ||
|
||
4. `cd` into the folder and install the helper: | ||
|
||
`python dev-helper.py install` | ||
|
||
4. Make changes to the code. | ||
Don't forget to write tests that will cover your changes, add type hints and adhere to flake8 formatting standard. | ||
|
||
5. Commit your changes with proper commit message. | ||
Fix problems identified by the helper if there are any. | ||
You can make several commits. | ||
|
||
6. Push the changes and open pull request to my repository | ||
|
||
If anything is unclear or you just want to report a bug/request a feature, feel free to open an issue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.