You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I think this would be best accomplished via a change to the source dataset. You'd probably be best directing a request to add the extra data needed there.
If that's not possible, and you're really concerned about performance, you might be better served by just pre-compiling your own mapping of TLDs to BCP 47 lang tags (you could I think construct these from the data in the mledoze/countries data plus a mapping of 3-letter language codes to 2-letter codes).
For some complex date handling I am looking for a function which returns me a BCP 47 language tag based on a TLD alone.
The locales parameter in this infamous function
(see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString)
can be a string with a BCP 47 language tag. Unfortunately you do not return a BCP 47 language tag in your results.
Could that be added in your array? And for performance, introduce a flag so that only this one is returned without anything else.
Thanks!
The text was updated successfully, but these errors were encountered: