Documentation for tasks
module
normalize.py
This module contains functions for normalizing i18n localization files.
__perform_normalize(locales, locale_path)
private method to perform normalization, should not be called directly
Source code in pyi18n/tasks/normalize.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
__save_normalized(locales, loader, locale_path, sorted_content)
private function to save the normalized content, should not be called directly.
Source code in pyi18n/tasks/normalize.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|
__sort_nested(dictionary)
private function to sort nested dictionaries
Source code in pyi18n/tasks/normalize.py
73 74 75 |
|
normalize_locales(locale_path='locales/')
Sorts the keys in alphabetically order, and overrides files
Source code in pyi18n/tasks/normalize.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|