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
Formatting values via this library ignores the CultureInfo set to Handlebars.Configuration.FormatProvider.
Numbers and dates will always be formatted with the culture of the current thread. Furthermore there are some tests failing if you run it on a non English locale.
Format JToken with Handlebars.Configuration.FormatProvider
If I set Handlebars.Configuration.FormatProvider to CultureInfo.Invariant I expect numbers to be formatted like 3.14 instead of like my locale would format: 3,14
Test to reproduce
Run current tests on a non English locale (in my case German/Austria) and some will fail:
Describe the bug
Formatting values via this library ignores the
CultureInfo
set toHandlebars.Configuration.FormatProvider
.Numbers and dates will always be formatted with the culture of the current thread. Furthermore there are some tests failing if you run it on a non English locale.
It seems PR #2 broke it.
Expected behavior:
Format
JToken
withHandlebars.Configuration.FormatProvider
If I set
Handlebars.Configuration.FormatProvider
toCultureInfo.Invariant
I expect numbers to be formatted like3.14
instead of like my locale would format:3,14
Test to reproduce
Run current tests on a non English locale (in my case German/Austria) and some will fail:
I am going to look into this problem and will try to provide a pull request.
The text was updated successfully, but these errors were encountered: