[BUG] [Python Client]Can't get online translation that the key only exist online bundle when online and offline mode are supported.
Open
@jin-jasper is already working on this.
Since Sep 17, 2020.
area/python-client
kind/bug
priority/medium
triage/invalid
triage/wontfix
- Dominant language
- Java
- Stars
- 72
- Forks
- 69
- Avg merge
- 23h 32m
- Merged PRs (30d)
- 4
Description
Describe the bug
Can't get online translation that the key only exist online bundle when online and offline mode are supported.
To Reproduce
Steps to reproduce the behavior:
- Set config as below in config.yml
online_service_url: http://localhost:8091/singleton/PythonClient/4.0.0/
offline_resources_base_url: file://d:/l10ntest/PythonClient/4.0.0/ - The component "intest" all exist in online bundle and offline bundle,the key "intest.online" only exist in online bundle
I18n.add_config_file('sample_online_offline.yml')
I18n.set_current_locale("fr")
self.rel = I18n.get_release(PRODUCT, VERSION)
translation = self.rel.get_translation()
tran1 = translation.get_string("intest","intest.online")
the result tran1 is key "intest.online"
Expected behavior
Tran1 should be the translation of "fr"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.