Post

Replies

Boosts

Views

Activity

AppIntents and bool localization
Hi, I've implemented my App Intent that asks for an int and then for a boolean with requestDisambiguation. If I use [true, false] Siri doesn't translate to other languages automatically, just asks for true or false, no matter what the system language is. let providedValue2 = try await $myval.requestDisambiguation(among: [true, false], dialog: "") If I translate the values as strings it works perfectly by interacting with the screen but, with voice, Siri enter in an infinite loop with requestDisambiguation... let restrue = NSLocalizedString("BoolLocalize", comment: "") let resfalse = NSLocalizedString("BoolLocalize2", comment: "") let providedValue2 = try await $myval.requestDisambiguation(among: [restrue, resfalse], dialog: "") var providedBool = false if providedValue2 == restrue { providedBool = true } ... Can it be a bug or am I doing something wrong? Thanks
0
0
602
Apr ’23