-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] request improvement of systemLocale #200
Comments
Great question, the short answer is, I'm not sure. In iOS I use To reproduce this it sounds like all I have to is have a device set to a language that is not supported by the app, is that correct? |
Yes it's correct! in this case the default language supported by the app will be used and not that of the device |
That's very interesting, thanks. I did not think that the locale property worked that way. I'll do some research and see if I can work around that. Since |
I just committed a change that should address this. The language returned by I'm also looking for input on expected behaviour. I kind of understand Apple's thinking on this. If the app isn't localized for a language, like CS, then using that for speech might be problematic. I think it is still okay to return the real device language as the |
This is now available in 4.2.0. |
Hi all!
If in Info.plist we have
Localizations
withen
andit
, and the device havecs
system language, I expect the app to be in English but the text recognition in Czech.On Android it works fine and Czech is recognized, but on iOS English is used.
speech.systemLocale()
returncs
in Android anden
in iOSIf I add
cs
on Info.plist,speech.systemLocale()
returncs
also in iOSBut changing Info.plist is not correct because this language is not supported by app.
Without modify Info.plist, if I use
Platform.localeName
in iOS I get correct system locale:cs
, why don't you use this to choose the default language?The text was updated successfully, but these errors were encountered: