LanguageSwitcher
LanguageSwitcher copied to clipboard
locale swizzle doesn't work with decimal input
It appears that swizzle for NSLocale.current no longer fixes the decimal input problem as described in: http://aplus.rs/2017/in-app-language-change-in-ios-app/
You can see that keyboard view still shows the . but if you tap it, it will correctly enter ,. Hence it’s annoyance at best.
In iOS 13, simulator or device, tapping the "." always enters a ".", and the parsing logic fails.
Can verify this by checking out this repository and and following these steps:
- open the app
- make sure English is shown
- tap the text field so the keyboard appears (you can see the . shown as decimal separator)
- dismiss it
- switch to Serbian (which uses , as decimal separator
- tap the text field again
Thanks for reporting, will look into this as soon as I can.