| /expo/ios/versioned/sdk47/ExpoLocalization/ |
| H A D | LocalizationModule.swift | 79 var locale = Locale.init(identifier: languageTag) in getLocales() variable 82 "languageCode": locale.languageCode, in getLocales() 83 "regionCode": locale.regionCode, in getLocales() 85 "decimalSeparator": locale.decimalSeparator, in getLocales() 88 "currencyCode": locale.currencyCode, in getLocales() 89 "currencySymbol": locale.currencySymbol in getLocales() 114 let locale = getLocale() in getCurrentLocalization() variable 115 let languageCode = locale.languageCode ?? "en" in getCurrentLocalization() 122 "currency": locale.currencyCode ?? "USD", in getCurrentLocalization() 126 "isMetric": locale.usesMetricSystem, in getCurrentLocalization() [all …]
|
| /expo/packages/expo-localization/build/ |
| H A D | ExpoLocalization.js | 65 get locale() { 69 const locale = navigator.language || constant 74 return locale; 97 const { locale } = this; 98 const [, ...suffixes] = typeof locale === 'string' ? locale.split('-') : []; 111 const locale = typeof Intl !== 'undefined' constant 135 const locale = ((typeof Intl !== 'undefined' constant 140 calendar: (locale?.calendar || locale?.calendars?.[0]) || null, 141 timeZone: locale?.timeZone || locale?.timeZones?.[0] || null, 142 … uses24hourClock: (locale?.hourCycle || locale?.hourCycles?.[0])?.startsWith('h2') ?? null, [all …]
|
| /expo/packages/expo-speech/android/src/main/java/expo/modules/speech/ |
| H A D | LanguageUtils.kt | 9 val locale = Locale("", country) in <lambda>() constant 10 locale.isO3Country.uppercase(locale) to locale in <lambda>() 15 val locale = Locale(language) in <lambda>() constant 16 locale.isO3Language to locale in <lambda>() 25 fun getISOCode(locale: Locale): String { in <lambda>() 26 var language = transformLanguageISO(locale.isO3Language) in <lambda>() 27 val country = locale.isO3Country in <lambda>()
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/speech/ |
| H A D | LanguageUtils.kt | 9 val locale = Locale("", country) in <lambda>() constant 10 locale.getISO3Country().toUpperCase(locale) to locale in <lambda>() 15 val locale = Locale(language) in <lambda>() constant 16 locale.getISO3Language() to locale in <lambda>() 25 fun getISOCode(locale: Locale): String { in <lambda>() 26 var language = transformLanguageISO(locale.getISO3Language()) in <lambda>() 27 val country = locale.getISO3Country() in <lambda>()
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/speech/ |
| H A D | LanguageUtils.kt | 9 val locale = Locale("", country) in <lambda>() constant 10 locale.getISO3Country().toUpperCase(locale) to locale in <lambda>() 15 val locale = Locale(language) in <lambda>() constant 16 locale.getISO3Language() to locale in <lambda>() 25 fun getISOCode(locale: Locale): String { in <lambda>() 26 var language = transformLanguageISO(locale.getISO3Language()) in <lambda>() 27 val country = locale.getISO3Country() in <lambda>()
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/speech/ |
| H A D | LanguageUtils.kt | 9 val locale = Locale("", country) in <lambda>() constant 10 locale.getISO3Country().toUpperCase(locale) to locale in <lambda>() 15 val locale = Locale(language) in <lambda>() constant 16 locale.getISO3Language() to locale in <lambda>() 25 fun getISOCode(locale: Locale): String { in <lambda>() 26 var language = transformLanguageISO(locale.getISO3Language()) in <lambda>() 27 val country = locale.getISO3Country() in <lambda>()
|
| /expo/ios/versioned/sdk48/ExpoLocalization/ |
| H A D | LocalizationModule.swift | 97 var locale = Locale.init(identifier: languageTag) in getLocales() variable 100 "languageCode": locale.languageCode, in getLocales() 101 "regionCode": locale.regionCode, in getLocales() 103 "decimalSeparator": locale.decimalSeparator, in getLocales() 106 "currencyCode": locale.currencyCode, in getLocales() 107 "currencySymbol": locale.currencySymbol in getLocales() 132 let locale = getLocale() in getCurrentLocalization() variable 133 let languageCode = locale.languageCode ?? "en" in getCurrentLocalization() 140 "currency": locale.currencyCode ?? "USD", in getCurrentLocalization() 144 "isMetric": locale.usesMetricSystem, in getCurrentLocalization() [all …]
|
| /expo/packages/expo-localization/src/ |
| H A D | ExpoLocalization.ts | 84 get locale(): string { 88 const locale = constant 94 return locale; 117 const { locale } = this; constant 118 const [, ...suffixes] = typeof locale === 'string' ? locale.split('-') : []; constant 132 const locale = constant 160 const locale = ((typeof Intl !== 'undefined' constant 165 calendar: ((locale?.calendar || locale?.calendars?.[0]) as CalendarIdentifier) || null, 166 timeZone: locale?.timeZone || locale?.timeZones?.[0] || null, 181 locale, constant [all …]
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/localization/ |
| H A D | LocalizationModule.kt | 47 val locale = Locale.getDefault() constant 50 val region = getRegionCode(locale) 51 val symbols = DecimalFormatSymbols(locale) 53 "currency" to getCurrencyCode(locale), 78 listOf(configuration.locale) 87 getCountryCode(locale) in getRegionCode() 100 if (getRegionCode(locale).equals("uk")) "uk" in getMeasurementSystem() 114 "languageTag" to locale.toLanguageTag(), in getPreferredLocales() 115 "regionCode" to getRegionCode(locale), in getPreferredLocales() 117 "languageCode" to locale.language, in getPreferredLocales() [all …]
|
| H A D | LocalizationUtils.kt | 14 fun getCountryCode(locale: Locale): String? { in getCountryCode() 16 val country = locale.country in getCountryCode() 29 fun getCurrencyCode(locale: Locale): String? { in getCurrencyCode() 31 val currency = Currency.getInstance(locale) in getCurrencyCode()
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/localization/ |
| H A D | LocalizationModule.kt | 71 val locale = Locale.getDefault() constant in abi48_0_0.expo.modules.localization.LocalizationModule 74 val region = getRegionCode(locale) 75 val symbols = DecimalFormatSymbols(locale) 77 "currency" to getCurrencyCode(locale), 102 listOf(configuration.locale) 111 getCountryCode(locale) in getRegionCode() 124 if (getRegionCode(locale).equals("uk")) "uk" in getMeasurementSystem() 138 "languageTag" to locale.toLanguageTag(), in getPreferredLocales() 139 "regionCode" to getRegionCode(locale), in getPreferredLocales() 141 "languageCode" to locale.language, in getPreferredLocales() [all …]
|
| H A D | LocalizationUtils.kt | 14 fun getCountryCode(locale: Locale): String? { in getCountryCode() 16 val country = locale.country in getCountryCode() 29 fun getCurrencyCode(locale: Locale): String? { in getCurrencyCode() 31 val currency = Currency.getInstance(locale) in getCurrencyCode()
|
| /expo/packages/expo-localization/android/src/main/java/expo/modules/localization/ |
| H A D | LocalizationUtils.kt | 17 fun getCountryCode(locale: Locale): String? { in getCountryCode() 19 val country = locale.country in getCountryCode() 32 fun getCurrencyCode(locale: Locale): String? { in getCurrencyCode() 34 val currency = Currency.getInstance(locale) in getCurrencyCode() 39 fun getRegionCode(locale: Locale): String? { in getRegionCode() 42 getCountryCode(locale) in getRegionCode() 46 fun getTemperatureUnit(locale: Locale): String? { in getTemperatureUnit() 47 val countryCode = getRegionCode(locale) ?: return null in getTemperatureUnit()
|
| H A D | LocalizationModule.kt | 88 val locale = Locale.getDefault() constant 91 val region = getRegionCode(locale) 92 val symbols = DecimalFormatSymbols(locale) 94 "currency" to getCurrencyCode(locale), 119 listOf(configuration.locale) 132 if (getRegionCode(locale).equals("uk")) "uk" in getMeasurementSystem() 143 val locale: Locale = localeList.get(i) ?: continue in getPreferredLocales() constant 147 "languageTag" to locale.toLanguageTag(), in getPreferredLocales() 148 "regionCode" to getRegionCode(locale), in getPreferredLocales() 150 "languageCode" to locale.language, in getPreferredLocales() [all …]
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/localization/ |
| H A D | LocalizationModule.kt | 88 val locale = Locale.getDefault() constant in abi49_0_0.expo.modules.localization.LocalizationModule 91 val region = getRegionCode(locale) 92 val symbols = DecimalFormatSymbols(locale) 94 "currency" to getCurrencyCode(locale), 119 listOf(configuration.locale) 128 getCountryCode(locale) in getRegionCode() 141 if (getRegionCode(locale).equals("uk")) "uk" in getMeasurementSystem() 156 "languageTag" to locale.toLanguageTag(), in getPreferredLocales() 157 "regionCode" to getRegionCode(locale), in getPreferredLocales() 159 "languageCode" to locale.language, in getPreferredLocales() [all …]
|
| H A D | LocalizationUtils.kt | 14 fun getCountryCode(locale: Locale): String? { in getCountryCode() 16 val country = locale.country in getCountryCode() 29 fun getCurrencyCode(locale: Locale): String? { in getCurrencyCode() 31 val currency = Currency.getInstance(locale) in getCurrencyCode()
|
| /expo/packages/expo-localization/src/__tests__/ |
| H A D | Localization-test.native.ts | 23 locale: 'en-US', 70 locale, constant 76 validateString(locale); 81 expect(locales[0]).toBe(Localization.locale); 95 validateString(Localization.locale); 101 expect(result[0]).toBe(Localization.locale); 134 i18n.locale = Localization.locale; 142 i18n.locale = Localization.locale; 144 const expoPredictedLangTag = Localization.locale.split('-')[0];
|
| H A D | Localization-test.web.ts | 25 locale, constant 31 validateString(locale); 36 expect(locales[0]).toBe(Localization.locale); 52 expect(Localization.locale).toBe('en'); 59 expect(Localization.locale).toBe('en-us'); 75 const result = Localization.locale; 89 expect(result[0]).toBe(Localization.locale);
|
| /expo/packages/expo-localization/ios/ |
| H A D | LocalizationModule.swift | 117 static func getMeasurementSystemForLocale(_ locale: Locale) -> String { in getMeasurementSystemForLocale() 124 return measurementSystems[locale.measurementSystem] ?? "metric" in getMeasurementSystemForLocale() 126 return locale.usesMetricSystem ? "metric" : "us" in getMeasurementSystemForLocale() 160 formatter.locale = Locale.current in getTemperatureUnit() 192 let locale = getLocale() in getCurrentLocalization() variable 193 let languageCode = locale.languageCode ?? "en" in getCurrentLocalization() 200 "currency": locale.currencyCode ?? "USD", in getCurrentLocalization() 201 "decimalSeparator": locale.decimalSeparator ?? ".", in getCurrentLocalization() 202 "digitGroupingSeparator": locale.groupingSeparator ?? ",", in getCurrentLocalization() 204 "isMetric": locale.usesMetricSystem, in getCurrentLocalization() [all …]
|
| /expo/ios/versioned/sdk49/ExpoLocalization/ |
| H A D | LocalizationModule.swift | 117 static func getMeasurementSystemForLocale(_ locale: Locale) -> String { in getMeasurementSystemForLocale() 124 return measurementSystems[locale.measurementSystem] ?? "metric" in getMeasurementSystemForLocale() 126 return locale.usesMetricSystem ? "metric" : "us" in getMeasurementSystemForLocale() 159 … let dateFormat = DateFormatter.dateFormat(fromTemplate: "j", options: 0, locale: Locale.current)! in uses24HourClock() 177 let locale = getLocale() in getCurrentLocalization() variable 178 let languageCode = locale.languageCode ?? "en" in getCurrentLocalization() 185 "currency": locale.currencyCode ?? "USD", in getCurrentLocalization() 186 "decimalSeparator": locale.decimalSeparator ?? ".", in getCurrentLocalization() 187 "digitGroupingSeparator": locale.groupingSeparator ?? ",", in getCurrentLocalization() 189 "isMetric": locale.usesMetricSystem, in getCurrentLocalization() [all …]
|
| /expo/apps/test-suite/tests/ |
| H A D | Localization.js | 92 locale, 98 validateString(locale); 105 t.expect(locales[0]).toBe(Localization.locale); 124 validateString(Localization.locale); 130 t.expect(result[0]).toBe(Localization.locale); 168 i18n.locale = Localization.locale; 176 i18n.locale = Localization.locale; 178 const expoPredictedLangTag = Localization.locale.split('-')[0];
|
| /expo/docs/pages/versions/v46.0.0/sdk/ |
| H A D | localization.mdx | 15 …specific regions, languages, or cultures. It also provides access to the locale data on the native… 41 // Set the locale once at the beginning of your app. 42 i18n.locale = Localization.locale; 68 // Set the locale once at the beginning of your app. 69 i18n.locale = Localization.locale; 74 // i18n.locale = 'ja'; 82 <Text>Current locale: {i18n.locale}</Text> 83 <Text>Device locale: {Localization.locale}</Text> 114 …the constants will always be correct, on Android you should check if the locale has updated using …
|
| /expo/apps/native-component-list/src/screens/ |
| H A D | LocalizationScreen.tsx | 14 i18n.locale = Localization.getLocales()[0].languageTag; 29 locale?: string; 53 currentLocale: Localization.locale, 60 const currentLocale = Localization.locale; 94 changeLocale = (locale: string) => { 95 i18n.locale = locale; 96 this.setState({ locale }); 113 selectedValue={this.state.locale}
|
| /expo/ios/versioned-react-native/ABI48_0_0/Expo/ExpoKit/Core/Api/Components/DateTimePicker/ |
| H A D | ABI48_0_0RNDateTimePickerShadowView.m | 18 - (void)setLocale:(NSLocale *)locale { 19 _locale = locale; 42 [shadowPickerView.picker setLocale:shadowPickerView.locale];
|
| /expo/ios/Exponent/Versioned/Core/Api/Components/DateTimePicker/ |
| H A D | RNDateTimePickerShadowView.m | 18 - (void)setLocale:(NSLocale *)locale { 19 _locale = locale; 42 [shadowPickerView.picker setLocale:shadowPickerView.locale];
|