vmware / vmware/singleton

[BUG] [Python Client]Can't get online translation that the key only exist online bundle when online and offline mode are supported.

Open
#793 1 comment 0 reactions 1 assignee View on GitHub

@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:

  1. 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/
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.