HomePhabricator

[Cashtab] Add and implement new helper function to get user locale

Description

[Cashtab] Add and implement new helper function to get user locale

Summary:
navigator.language is a useful variable for rendering numbers and other output according to a user's browser settings and location. Add a helper function to get this variable from screens. Implement in SendXec.

This is a primitive that will be used to standardize how large numbers are formatted for Cashtab users. See D15662 for how it will first be extended and applied.

Test Plan: npm test

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D15671

Details

Provenance
bytesofmanAuthored on Mar 11 2024, 12:43
bytesofmanPushed on Mar 11 2024, 13:40
Reviewer
Restricted Project
Differential Revision
D15671: [Cashtab] Add and implement new helper function to get user locale
Parents
rABC43d842c15439: [chronik-client] Add line breaks to README changelog
Branches
Unknown
Tags
Unknown