As you can see above, the Minimum and Maximum values are localized correctly, but the Value's value is not. This is because the value of Value is a string, while the other values are numbers.
To Reproduce
Steps to reproduce the behavior:
Use fixtures/valid_certificate_3.json from CoA-schemas to generate a pdf.
Look in the inspections section. If the value of any of the 3 properties mentioned above is a string, localization will fail. If it is a number, it will localize correctly.
Expected behavior
Localization should be applied the same way as for the Minimum and Maximum when the type is a string, in this case, there should be a comma in between each number.
Description
The language-specific rules for formatting numbers are not applied to a numeric value in Inspections. Localization of inspection value
As you can see above, the
Minimum
andMaximum
values are localized correctly, but theValue
's value is not. This is because the value ofValue
is astring
, while the other values arenumbers
.To Reproduce
Steps to reproduce the behavior: Use
fixtures/valid_certificate_3.json
from CoA-schemas to generate a pdf. Look in the inspections section. If the value of any of the 3 properties mentioned above is astring
, localization will fail. If it is anumber
, it will localize correctly.Expected behavior
Localization should be applied the same way as for the Minimum and Maximum when the type is a
string
, in this case, there should be a comma in between each number.This issue is linked to the following issue in the CoA-schemas repository: https://github.com/thematerials-network/CoA-schemas/issues/46