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 #15 from Krutyi-4el/develop
v0.8.0
- Loading branch information
Showing
17 changed files
with
255 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
from . import resource_loader | ||
from .resource_loader import Loader, register_loader, load_config, reload_everything | ||
from .errors import I18nException, I18nFileLoadError, I18nInvalidStaticRef | ||
from typing import List | ||
|
||
from .resource_loader import ( | ||
Loader, | ||
register_loader, | ||
init_loaders as init_default_loaders, | ||
load_config, | ||
load_everything, | ||
unload_everything, | ||
reload_everything, | ||
) | ||
from .errors import ( | ||
I18nException, | ||
I18nFileLoadError, | ||
I18nInvalidStaticRef, | ||
I18nInvalidFormat, | ||
) | ||
from .translator import t | ||
from .translations import add as add_translation | ||
from .custom_functions import add_function | ||
from . import config | ||
from .config import set, get | ||
|
||
resource_loader.init_loaders() | ||
init_default_loaders() | ||
|
||
load_path: List[str] = get("load_path") | ||
|
||
load_path = config.get('load_path') | ||
del List |
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.