Joel Denke
02/26/2024, 8:44 AMLocale.getAvailableLocales()
in CMP scope? When using Locale.current you get platform variant not seems to expose these kind of APIs.
If not, is there any libraries to do this, I couldve missed?Dima Avdeev
02/26/2024, 9:28 AMLocale.getAvailableLocales()
is available only on desktopMain and androidMain sourceSet's.
But you can create your own expect / actual implementation for all platforms.
On iOS sourceSet you can use avaliableLocaleIdentifiers for implementationJoel Denke
02/26/2024, 9:50 AMJoel Denke
02/26/2024, 10:38 AM