LPS-47196 add localization test and refactor

Test that renderer output follows locale conventions and refactor.
LPS-47196 format numbers according to locale in DDM edit views