Skip to content

Aggregate targets do not work when language is set to Nepali #10525

@binokaryg

Description

@binokaryg

Describe the bug
When the user language is set to Nepali, the aggregate targets always show 0.

To Reproduce

Steps to reproduce the behavior:

  1. Add at least one target in the configuration that has aggregate: true
  2. Make sure that the target counter goes up as CHW
  3. Set language to English
  4. Make sure that the aggregate target counter goes up as a supervisor
  5. Change language to Nepali
  6. See all the aggregate targets go back to 0

Expected behavior
I expected the aggregate targets to show up regardless of the langauge selected

Logs
No error in the console

Screenshots

Language set to Nepali:
Image

Language set to English:

Image

Language set to French:

Image

Environment

  • Instance: local
  • Browser: Chrome
  • Client platform: Windows
  • App: webapp
  • Version: 4.15 ~ master

Additional context

When the targets are being fetched, the numerals in the keys are changed to Devanagari (script used for Nepali language).

Image

const opts = {
start_key: `target~${tag}~`,
end_key: `target~${tag}~\ufff0`,
include_docs: true,
};