Is it possible to get the OS language of an android or IOS device?

It’s possible using this function:

#if PLATFORM_ANDROID
#include "Android/AndroidPlatformMisc.h"
#else
#include "Internationalization/Culture.h"
#endif

...

FString Language;
#if PLATFORM_ANDROID
    Language = FAndroidMisc::GetOSLanguage(); //for Android devices
#else
    Language = FInternationalization::Get().GetCurrentLanguage()->GetName(); //for PC 
#endif

Hope it can help someone, I used it on Meta Quest Oculus and it works great