Skip to content

Add regression test for and fix issue with localizing numbers in JSON.#3406

Merged
bjester merged 1 commit intolearningequality:unstablefrom
rtibbles:no_i18n_numbers
Jun 9, 2022
Merged

Add regression test for and fix issue with localizing numbers in JSON.#3406
bjester merged 1 commit intolearningequality:unstablefrom
rtibbles:no_i18n_numbers

Conversation

@rtibbles
Copy link
Copy Markdown
Member

@rtibbles rtibbles commented Jun 7, 2022

Summary

Description of the change(s) you made

Prevents Django templates that generate JSON from applying i18n to numbers that should be in JSON format.

Manual verification steps performed

  1. Add an image with decimal dimensions to existing test
  2. Run test in "es-es" that uses a non-decimal point separator
  3. Confirm that fix produces valid JSON

References

Fixes #3341

@bjester bjester merged commit 392e218 into learningequality:unstable Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Questions with resized images published under Spanish or French will break in Kolibri

3 participants