Something similar to [NSLocale currentLocale] in Objective-C.
function getLocale() { if (React.Platform.OS === 'android') { return I18n.locale; } else { return NativeModules.SettingsManager.settings.AppleLocale.replace(/_/, '-'); } }