I'd like to format a currency value that a user inputs in a modal dialog as part of a lightning-datatable
field that is composed of some fixed text and that currency value.
But AFAIK there are no JavaScript APIs in LWC for this kind of thing: it is assumed that such formatting is always part of a template via e.g. lightning-formatted-number with the results directly output.
Is hand-crafted code or using a 3rd party library and finding ways to hook in the user's locale the only way to go here?