INPreferences.siriLanguageCode() returns empty string

The Siri language code return empty string. What to do?

I found the answer. First you have to get siri authorization from the user.

INPreferences.siriLanguageCode() returns empty string
 
 
Q