LanguageSwitcher icon indicating copy to clipboard operation
LanguageSwitcher copied to clipboard

locale swizzle doesn't work with decimal input

Open larkin opened this issue 6 years ago • 1 comments

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:

  1. open the app
  2. make sure English is shown
  3. tap the text field so the keyboard appears (you can see the . shown as decimal separator)
  4. dismiss it
  5. switch to Serbian (which uses , as decimal separator
  6. tap the text field again

larkin avatar Oct 22 '19 21:10 larkin

Thanks for reporting, will look into this as soon as I can.

radianttap avatar Oct 23 '19 07:10 radianttap