René's URL Explorer Experiment


Title: Ship the Android and iOS V8 runtimes with ICU so Intl is available · Issue #11563 · NativeScript/NativeScript · GitHub

Open Graph Title: Ship the Android and iOS V8 runtimes with ICU so Intl is available · Issue #11563 · NativeScript/NativeScript

X Title: Ship the Android and iOS V8 runtimes with ICU so Intl is available · Issue #11563 · NativeScript/NativeScript

Description: Is your feature request related to a problem? Please describe. The NativeScript 9 Android and iOS runtimes ship V8 without ICU, so Intl does not exist: typeof Intl // 'undefined' new Intl.NumberFormat() // ReferenceError: Intl is not def...

Open Graph Description: Is your feature request related to a problem? Please describe. The NativeScript 9 Android and iOS runtimes ship V8 without ICU, so Intl does not exist: typeof Intl // 'undefined' new Intl.NumberFor...

X Description: Is your feature request related to a problem? Please describe. The NativeScript 9 Android and iOS runtimes ship V8 without ICU, so Intl does not exist: typeof Intl // 'undefined' new Intl.N...

Opengraph URL: https://github.com/NativeScript/NativeScript/issues/11563

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ship the Android and iOS V8 runtimes with ICU so Intl is available","articleBody":"### Is your feature request related to a problem? Please describe.\n\nThe NativeScript 9 Android and iOS runtimes ship V8 without ICU, so `Intl` does not exist:\n\n```js\ntypeof Intl // 'undefined'\nnew Intl.NumberFormat() // ReferenceError: Intl is not defined\n```\n\nVerified at runtime with `@nativescript/android` 9.1.1 on a physical device (Android 16) and `@nativescript/ios` 9.1.0 on an iOS 27 simulator. The same code works in Chromium, Safari/JSC, Node, and Hermes.\n\nThe cause is a build flag, not a runtime bug. Both build scripts in `NativeScript/v8-buildscripts` set it:\n\n- [`scripts/matrix/build-android.sh`](https://github.com/NativeScript/v8-buildscripts/blob/main/scripts/matrix/build-android.sh): `v8_enable_i18n_support=false`\n- [`scripts/matrix/build-ios.sh`](https://github.com/NativeScript/v8-buildscripts/blob/main/scripts/matrix/build-ios.sh): `v8_enable_i18n_support=false`\n\nThe script comment says this \"reproduces the shape of the 10.3 build these libraries replace\". The flag was carried over from the old build rather than chosen fresh. The 14.9 rebuild seems like a good moment to revisit it.\n\nThe flag removes more than the `Intl` constructors. These engine features also fail or quietly misbehave on Android and iOS:\n\n| Feature | Behavior without ICU |\n| --- | --- |\n| `Intl.*` (NumberFormat, DateTimeFormat, PluralRules, Collator, Segmenter, …) | `ReferenceError` |\n| `Number#toLocaleString`, `Date#toLocale*String` | Options and locales ignored (#8249, #8472) |\n| `String#localeCompare` | Locale and options ignored (#7810, #10617) |\n| `String#normalize` | No-op |\n| `toLocaleUpperCase` / `toLocaleLowerCase` | Locale rules ignored |\n| RegExp `\\p{…}` property escapes | `SyntaxError` at parse time |\n\nReal-world impact:\n\n- **Libraries crash at import.** Any module that builds a formatter at module scope throws on load. One example is the common `const fmt = new Intl.NumberFormat()` pattern.\n- **i18n libraries break.** `@lingui/core` calls `Intl.PluralRules`, so every pluralized message throws.\n- **Bundles need patching.** Libraries that use `\\p{L}` regexes (`linkifyjs`, `@lexical/link`, and others) fail to parse. Apps have to patch them or transpile the regexes.\n\n### Describe the solution you'd like\n\nBuild the Android and iOS V8 libraries with `v8_enable_i18n_support=true`, and initialize ICU in both runtimes before V8 starts.\n\nTwo packaging options would work:\n\n1. **On by default.** This matches browsers and Node. React Native's Hermes exposes `Intl` on Android and iOS too, but delegates to the platform's ICU instead of shipping its own data — a precedent for exposing `Intl` by default, not for bundling ICU data (and that delegation path isn't available to V8 anyway; see alternatives).\n2. **An ICU runtime flavor.** Ship it next to the existing AAR flavors and the iOS framework, selectable from app config. This also fits the \"optional\" direction in https://github.com/NativeScript/NativeScript/issues/10297#issuecomment-2095041966. The optional piece would be the engine build, not a JS polyfill.\n\nSize data to help weigh the cost:\n\n| ICU data file (Chromium's ICU checkout, `chromium/deps/icu`) | Size |\n| --- | --- |\n| `common/icudtl.dat` (full CLDR) | 10.3 MiB (4.4 MiB gzip) |\n| `android/icudtl.dat` (Chromium's Android filter) | 8.9 MiB |\n| `ios/icudtl.dat` (Chromium's iOS filter) | 6.2 MiB |\n| `flutter/icudtl.dat` (Flutter's filter — text layout only, not an `Intl` implementation) | 0.8 MiB |\n\n- **Ship the data once.** The scripts set `icu_use_data_file=false`, which embeds the data in every ABI's `.so`. With `icu_use_data_file=true`, Android can ship one architecture-independent `icudtl.dat` in assets. That stores it once per APK instead of once per ABI.\n- **Filter the data.** ICU's data filters can trim locales and features further, as the Chromium and Flutter variants show.\n- **Precedent:** `react-native-v8` reports about 7 MiB per ABI for ICU, and the `jsc-android` intl variant about 6 MiB.\n- **Not measured yet:** the ICU code-size delta under these exact GN args.\n\n### Describe alternatives you've considered\n\n**FormatJS polyfills.** These are the current workaround, as suggested in #10588. They work: for the cases we tested, forced FormatJS gave byte-identical formatter output on Android, iOS, Chromium, and macOS JSC. They aren't a substitute for engine ICU:\n\n- **They can't fix engine features.** `\\p{…}` regexes, `normalize`, locale case mapping, and `localeCompare` stay broken.\n- **Size**, measured with esbuild, minified:\n  - About 957 KiB (250 KiB gzip) for eight constructors with English only.\n  - About +337 KiB per extra locale.\n  - About +789 KiB for time-zone data.\n  - `Intl.Collator` with all locale data is 5.8 MiB.\n- **Startup:** importing a full bundle (about 10 MiB) took 314 ms in a debug build on a physical Android device.\n- **Setup burden:** every app must wire up load order, locale data, and defaults itself. Without that, the polyfills fall back to `en` and `UTC` on device.\n\n**Platform formatter bridges** (`android.icu`, `NSNumberFormatter`/`NSDateFormatter`, like the legacy `nativescript-intl`). These give only a partial API whose output varies by OS version. iOS has no public plural-rules API. Hermes's maintainers describe the platform APIs as \"simply inadequate for a complete and correct implementation\" (https://github.com/facebook/hermes/discussions/1211). Hermes itself took this path for space efficiency and still hasn't reached parity — it lacks `PluralRules`, `RelativeTimeFormat`, `ListFormat`, `Locale`, and `Segmenter`, which a third-party ICU4X library ([hermes-intl](https://github.com/magrinj/hermes-intl)) now fills.\n\n### Anything else?\n\n- **Related:** #10297 (comment on `Intl`), #10617, #10588, #8249, #8472, #7810.\n- **Where this came from:** we found this building a cross-platform framework on NativeScript, where the same app code runs on web, macOS, iOS, and Android.\n- **Open question for maintainers:** which shape would you accept — on by default or a separate flavor, and embedded data or a shared data file?\n\n### Please accept these terms\n\n- [x] I have searched the [existing issues](https://github.com/NativeScript/NativeScript/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\n- [x] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/aleclarson","@type":"Person","name":"aleclarson"},"datePublished":"2026-10-21T22:44:56Z","url":"https://github.com/NativeScript/NativeScript/issues/11563"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b38cf3f1-cdc1-e3e8-fbbb-02281eb03e33
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDCA2:33D24F:10721E5:151E828:6B011A46
html-safe-noncee060f964b69d00ff2d75d6a2e104a40e9c39f1993096ede7789ee72f4d8d5e22
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0EyOjMzRDI0RjoxMDcyMUU1OjE1MUU4Mjg6NkIwMTFBNDYiLCJ2aXNpdG9yX2lkIjoiNTQ3MTEyMTU3NzU4NjI2ODc0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc5431bff472f679c0d54d5c55acbbf282c2df4b38df1624a0f9a3cac38356226
hovercard-subject-tagissue:5969736257
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/11563/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3c9e61629da976b67df47690e0304f66f4ca95e9c21b21d0e85abd94dfbf6aca/NativeScript/NativeScript/issues/11563
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3c9e61629da976b67df47690e0304f66f4ca95e9c21b21d0e85abd94dfbf6aca/NativeScript/NativeScript/issues/11563
og:image:altIs your feature request related to a problem? Please describe. The NativeScript 9 Android and iOS runtimes ship V8 without ICU, so Intl does not exist: typeof Intl // 'undefined' new Intl.NumberFor...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealeclarson
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id31492490
octolytics-dimension-repository_nwoNativeScript/NativeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31492490
octolytics-dimension-repository_network_root_nwoNativeScript/NativeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/issues/11563#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F11563
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F11563
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2FNativeScript
Reloadhttps://github.com/NativeScript/NativeScript/issues/11563
Reloadhttps://github.com/NativeScript/NativeScript/issues/11563
Reloadhttps://github.com/NativeScript/NativeScript/issues/11563
NativeScripthttps://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Codehttps://github.com/NativeScript/NativeScript
Issues231 (231)https://github.com/NativeScript/NativeScript/issues
Pull requests109 (109)https://github.com/NativeScript/NativeScript/pulls
Discussionshttps://github.com/NativeScript/NativeScript/discussions
Actionshttps://github.com/NativeScript/NativeScript/actions
Projectshttps://github.com/NativeScript/NativeScript/projects
Wikihttps://github.com/NativeScript/NativeScript/wiki
Security and qualityhttps://github.com/NativeScript/NativeScript/security
Insightshttps://github.com/NativeScript/NativeScript/insights
https://github.com/NativeScript/NativeScript
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/11563
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/11563
Ship the Android and iOS V8 runtimes with ICU so Intl is availablehttps://github.com/NativeScript/NativeScript/issues/11563#top
featurehttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22feature%22
os: androidhttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22os%3A%20android%22
os: ioshttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22os%3A%20ios%22
https://github.com/aleclarson
aleclarsonhttps://github.com/aleclarson
on Oct 21, 2026https://github.com/NativeScript/NativeScript/issues/11563#issue-5969736257
scripts/matrix/build-android.shhttps://github.com/NativeScript/v8-buildscripts/blob/main/scripts/matrix/build-android.sh
scripts/matrix/build-ios.shhttps://github.com/NativeScript/v8-buildscripts/blob/main/scripts/matrix/build-ios.sh
#8249https://github.com/NativeScript/NativeScript/issues/8249
#8472https://github.com/NativeScript/NativeScript/issues/8472
#7810https://github.com/NativeScript/NativeScript/issues/7810
#10617https://github.com/NativeScript/NativeScript/issues/10617
WinterTC Minimum Common Web Platform API Alignment #10297 (comment)https://github.com/NativeScript/NativeScript/issues/10297#issuecomment-2095041966
#10588https://github.com/NativeScript/NativeScript/issues/10588
meta/hermes#1211https://github.com/meta/hermes/discussions/1211
hermes-intlhttps://github.com/magrinj/hermes-intl
WinterTC Minimum Common Web Platform API Alignment #10297https://github.com/NativeScript/NativeScript/issues/10297
Improved support for localeCompare #10617https://github.com/NativeScript/NativeScript/issues/10617
Add Device number format #10588https://github.com/NativeScript/NativeScript/issues/10588
toLocaleString() doesn't localise the number #8249https://github.com/NativeScript/NativeScript/issues/8249
JavaScript Date functions not fully working #8472https://github.com/NativeScript/NativeScript/issues/8472
localCompare not working with 'Umlaut' #7810https://github.com/NativeScript/NativeScript/issues/7810
existing issueshttps://github.com/NativeScript/NativeScript/issues
StackOverflowhttps://stackoverflow.com/questions/tagged/nativescript
Code of Conducthttps://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc
https://github.com/farfromrefug
farfromrefughttps://github.com/farfromrefug
on Oct 22, 2026https://github.com/NativeScript/NativeScript/issues/11563#issuecomment-6345516065
@aleclarsonhttps://github.com/aleclarson
https://github.com/magrinj/hermes-intlhttps://github.com/magrinj/hermes-intl
https://github.com/i18next/i18next-icuhttps://github.com/i18next/i18next-icu
https://pub.dev/packages/intlhttps://pub.dev/packages/intl
NathanWalkerhttps://github.com/NathanWalker
featurehttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22feature%22
os: androidhttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22os%3A%20android%22
os: ioshttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22os%3A%20ios%22
on Oct 23, 2026https://github.com/NativeScript/NativeScript/issues/11563#event-34090974705
https://github.com/aleclarson
aleclarsonhttps://github.com/aleclarson
on Oct 25, 2026https://github.com/NativeScript/NativeScript/issues/11563#issuecomment-6399405269
@farfromrefughttps://github.com/farfromrefug
https://github.com/CatchABus
CatchABushttps://github.com/CatchABus
on Nov 8, 2026https://github.com/NativeScript/NativeScript/issues/11563#issuecomment-6725775070
https://github.com/farfromrefug
farfromrefughttps://github.com/farfromrefug
on Nov 9, 2026https://github.com/NativeScript/NativeScript/issues/11563#issuecomment-6737312329
@CatchABushttps://github.com/CatchABus
@ammarahm-edhttps://github.com/ammarahm-ed
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/NativeScript/issues/11563
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/11563
featurehttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22feature%22
os: androidhttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22os%3A%20android%22
os: ioshttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22os%3A%20ios%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.