René's URL Explorer Experiment


Title: Add Device number format · Issue #10588 · NativeScript/NativeScript · GitHub

Open Graph Title: Add Device number format · Issue #10588 · NativeScript/NativeScript

X Title: Add Device number format · Issue #10588 · NativeScript/NativeScript

Description: Is your feature request related to a problem? Please describe. I'd like to more easily & accurately identify the user's preferred number format, to use when formatting numbers in my app to match this. Describe the solution you'd like I'd...

Open Graph Description: Is your feature request related to a problem? Please describe. I'd like to more easily & accurately identify the user's preferred number format, to use when formatting numbers in my app to match th...

X Description: Is your feature request related to a problem? Please describe. I'd like to more easily & accurately identify the user's preferred number format, to use when formatting numbers in my app...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add Device number format","articleBody":"### Is your feature request related to a problem? Please describe.\r\n\r\nI'd like to more easily & accurately identify the user's preferred number format, to use when formatting numbers in my app to match this.\r\n\r\n\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nI'd like to see NativeScript's [Device class](https://docs.nativescript.org/core/device) contain a numberFormat property to expose their OS-level user preference:\r\n\r\n_Identifying the user's preference is the goal here_; not actually reformatting of numbers. Once I have that, I can handle formatting numbers within my app to match their preference.\r\n\r\nFrom iOS Settings -> General -> Language & Region -> Number Format:\r\n![Simulator Screenshot - iPhone 15 Pro - 2024-07-21 at 18 05 46](https://github.com/user-attachments/assets/031e2b95-f25f-4e2d-9fd2-d7ee5607e38d)\r\n\r\n\r\n### Describe alternatives you've considered\r\n\r\nI've tried:\r\n- Using `Intl.NumberFormatter` in NativeScript (v8.7.2), but it is broken and always uses a comma thousands separator. The [Intl class is not supported currently apparently](https://github.com/NativeScript/NativeScript/issues/10297#issuecomment-2095041966).\r\n- I've considered npm's `Intl` class, but it hasn't been updated in 8 years, and I found errors, _shockingly_, even in the current NodeJS Intl class for thousands and fractional separators for certain regions. _This class is also not consistent with iOS's number formatting for certain regions._\r\n- I ended up using a Node script to create base data set of thousands and fractional separators, and then manually correcting and handling scenarios such as french-speaking Canada vs English speaking Canada. \r\n\r\nHowever, all of the above are error prone, require maintenance, and are not guaranteed to respect/match the user's system-level preference on iOS. \r\n\r\nThe ideal solution would be to get this from the user's iOS system preferences, so we can format it to what the user expects.\r\n\r\n### Anything else?\r\n\r\n_No response_\r\n\r\n### Please accept these terms\r\n\r\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\r\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/jasongitmail","@type":"Person","name":"jasongitmail"},"datePublished":"2024-07-21T18:33:04Z","url":"https://github.com/NativeScript/NativeScript/issues/10588"}

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:e1eda888-c488-9a0b-d905-4f5d611d2b0c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9516:37820D:14971AE:1B5B9E4:6B011DDA
html-safe-nonceea1c92ffae18330aa610b8b0538968b761f6e71350fef4d64ffb1e57490f86d8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTE2OjM3ODIwRDoxNDk3MUFFOjFCNUI5RTQ6NkIwMTFEREEiLCJ2aXNpdG9yX2lkIjoiODgyNDM0ODA4NDgzNTI2MTkxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0dc0b1886dd5c249838f908b9b8aa058679d81baac298a35955298c3155eb956
hovercard-subject-tagissue:2421553811
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/10588/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a2c6069f99faee8581bbcd13b19eb99971e115c20bb3354bf0c8b72d9d1a27c8/NativeScript/NativeScript/issues/10588
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a2c6069f99faee8581bbcd13b19eb99971e115c20bb3354bf0c8b72d9d1a27c8/NativeScript/NativeScript/issues/10588
og:image:altIs your feature request related to a problem? Please describe. I'd like to more easily & accurately identify the user's preferred number format, to use when formatting numbers in my app to match th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejasongitmail
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/10588#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F10588
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%2F10588
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/10588
Reloadhttps://github.com/NativeScript/NativeScript/issues/10588
Reloadhttps://github.com/NativeScript/NativeScript/issues/10588
NativeScripthttps://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Codehttps://github.com/NativeScript/NativeScript
Issues231 (231)https://github.com/NativeScript/NativeScript/issues
Pull requests107 (107)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/10588
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/10588
Add Device number formathttps://github.com/NativeScript/NativeScript/issues/10588#top
featurehttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com/jasongitmail
jasongitmailhttps://github.com/jasongitmail
on Jul 21, 2024https://github.com/NativeScript/NativeScript/issues/10588#issue-2421553811
Device classhttps://docs.nativescript.org/core/device
https://private-user-images.githubusercontent.com/50032291/350789478-031e2b95-f25f-4e2d-9fd2-d7ee5607e38d.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMzU1OTAsIm5iZiI6MTc5NTIzNTI5MCwicGF0aCI6Ii81MDAzMjI5MS8zNTA3ODk0NzgtMDMxZTJiOTUtZjI1Zi00ZTJkLTlmZDItZDdlZTU2MDdlMzhkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDA0MjgxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ0OTg4YTYyNWY2ZGU5ZjFlZDNjZTk4NmZhYTg5Mzg2YTM1MjMwMzc5NjNjNGZlNTYzMGJjZDNhNWU1YWM5MjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.fgv7sWNtStnT45VcZAy1BsRyS4CW-7hgieOUCEQtm4o
Intl class is not supported currently apparentlyhttps://github.com/NativeScript/NativeScript/issues/10297#issuecomment-2095041966
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
jasongitmailhttps://github.com/jasongitmail
feature-pending-triageA new feature request pending triage to confirm validity.https://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22feature-pending-triage%22
on Jul 21, 2024https://github.com/NativeScript/NativeScript/issues/10588#event-13593347766
https://github.com/CatchABus
CatchABushttps://github.com/CatchABus
on Jul 21, 2024https://github.com/NativeScript/NativeScript/issues/10588#issuecomment-2241740907
https://formatjs.io/docs/polyfillshttps://formatjs.io/docs/polyfills
https://github.com/jasongitmail
jasongitmailhttps://github.com/jasongitmail
on Jul 23, 2024https://github.com/NativeScript/NativeScript/issues/10588#issuecomment-2246251266
https://github.com/triniwiz
triniwizhttps://github.com/triniwiz
on Jul 27, 2024https://github.com/NativeScript/NativeScript/issues/10588#issuecomment-2254057018
@jasongitmailhttps://github.com/jasongitmail
herehttps://developer.android.com/reference/android/icu/text/NumberFormat
herehttps://developer.android.com/reference/java/text/NumberFormat
herehttps://developer.apple.com/documentation/foundation/nsnumberformatter?language=objc
https://github.com/jasongitmail
jasongitmailhttps://github.com/jasongitmail
on Jul 27, 2024https://github.com/NativeScript/NativeScript/issues/10588#issuecomment-2254195244
NathanWalkerhttps://github.com/NathanWalker
featurehttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22feature%22
feature-pending-triageA new feature request pending triage to confirm validity.https://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22feature-pending-triage%22
on Oct 23, 2026https://github.com/NativeScript/NativeScript/issues/10588#event-34091089912
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/NativeScript/issues/10588
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/10588
featurehttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22feature%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.