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
Allow Errors to be in separate culture info that parser.
Fix#918, and also #1039. Sets up a fix for #990.
Make ExpressionError.Message localize lazily.
- Callers can get the localized message in any culture after the
parse/bind
- just checking IsSuccess can then avoid localization since that doesn't
read the message property
Add test to ensure we're not using Thread.CurrentCulture when a culture
is provided.
- Update a bunch of usages. StartsWith(), EndsWith() ,etc require
StringComparison.Ordinal, else they will check current culture.
- RegEx required CultureInvariant
Add more tests
- add ExpressionErrorTests to get 100% code coverage on ExpressionError.
- add MultiCulture* tests to demonstrate how we can set
Parse/ErrorMessage/Runtime cultures independently
- remove parserOptions usage in LSP that wasn't being used.
Removing the config from PowerFxConfig.
See #918, and discussion in #872 .
We have 3 uses of culture:
These can often be different values.
Setting this once in config may seem convenient, but it becomes a problem when we need to set different values.
we should avoid a global setting on config, and just rely on the caller being explicit.
Related - we should never be getting this from thread's current culture. Again, require the caller to be explicit.
The text was updated successfully, but these errors were encountered: