What happened?
Description
If you create Table with Number column, then the Numbers decimal separator doesnt get localized if you used decimal comma.
Steps to reproduce
- Have two sites. Primary site in non-English language that uses decimal comma in numbers. Secondary site in English.
- Create Table field with Number column. This Table field should be Not Translatable.
- Add this Table to some Entry.
- In Entry write in some number with decimal comma. For example 500,6
- Print the number in Twig with number filter, like
row.value|number
- Check both English and non-English site output.
Expected behavior
500,6 for non-English (comma)
500.6 for English (point)
Actual behavior
Both show 500,6 (comma)
Additional info
If you use decimal point in the Table, then the formatting works and output of row.value|number will be correct according to site locale.
So for now I will just write all my Table Numbers with decimal point. But this could be improved in future.
Craft CMS version
5.9.22
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
What happened?
Description
If you create Table with Number column, then the Numbers decimal separator doesnt get localized if you used decimal comma.
Steps to reproduce
row.value|numberExpected behavior
500,6 for non-English (comma)
500.6 for English (point)
Actual behavior
Both show 500,6 (comma)
Additional info
If you use decimal point in the Table, then the formatting works and output of
row.value|numberwill be correct according to site locale.So for now I will just write all my Table Numbers with decimal point. But this could be improved in future.
Craft CMS version
5.9.22
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions