In the app I can print Locale.preferredLanguages[0].prefix(2) and I get pl, but the same part of code within Widget gives me en. Why?<
Locale.preferredLanguages[0].prefix(2)
pl
en