1 Reply
      Latest reply on Mar 29, 2019 8:39 AM by KMT
      petter1234 Level 1 Level 1 (0 points)

        If the language used by Siri is different than the language settings of the user’s device I get mixed language responses when handling intents.

         

        How can I create an instance of a custom INObject with a localized display string and have it use the language used by Siri rather than the language set for the device.

         

        With the following code I always get the language of the device and not the language used by Siri

        INObject(identifier: nyId, display: NSLocalizedString("display", comment: "localizable display string")
        

         

        Also tried to get the language used by Siri using INPreferences.siriLanguageCode(), but it returns an empty string.