You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is expected. The number patterns, just like all other data in the CLDR, occasionally get updated. For 2.6, we went up 3 CLDR versions, so a number of changes are to be expected.
For what it's worth, that \xa0 you're seeing in the first excerpt is the no-break space, which is an excellent choice for adding visual spaces in numbers. I believe many of the patterns in the CLDR actually use \xa0 anyway.
My suggestion is to fix that assertion according to the new data, or if you need compatibility with both Babel 2.5.x and 2.6.x (or newer), make it
It seems something has leaked to the 2.6. which is not backwards compatible.
Our tests here fail with 2.6.0 but pass with 2.5.3
The failing test:
https://github.com/shuup/shuup/blob/master/shuup_tests/core/test_units.py#L205
This further calls https://github.com/shuup/shuup/blob/master/shuup/core/models/_units.py#L314 which finally calls our very on
format_number
here: https://github.com/shuup/shuup/blob/master/shuup/utils/i18n.py#L61in this
format_number
the format is being fetched from the current locale, and this is where we run into problems.With 2.5.3 you get the following patterns:
And, with 2.6, you get the following patterns:
All this can be traced back to a change in
hy.dat
which has its pattern updated.I guess it has something to do with the version changes of the used files (CLDR).
https://github.com/python-babel/babel/blob/master/scripts/download_import_cldr.py#L16
Or, the issue is somewhere else and I just missed it (entirely possible) :)
Good job keeping this up to date 👍
The text was updated successfully, but these errors were encountered: