locale
3 TopicsIntl.DateTimeFormat missing Welsh (cy / cy-GB) support
Hi! I'm a developer at a company who is currently working with the Welsh government and have come across an issue with Microsoft Edge. When using the Intl.DateTimeFormat JavaScript API in Microsoft Edge, there is no support for cy / cy-GB. Intl.DateTimeFormat.supportedLocalesOf("cy-GB"); // Outputs [] Intl.DateTimeFormat.supportedLocalesOf("cy"); // Outputs [] If a developer tries to do any date formatting with the locale set to cy or cy-GB, only English will be returned. Out of curiosity I tried this with and without the Windows language being set to Welsh / Cymraeg. The result was the same (no support). Mozilla Firefox and Apple Safari have full support. Interestingly Google Chrome does not (perhaps shared issue / limitation of Chromium). Unfortunately this causes a bit of a significant challenge. Any website / web app developed for the Welsh government or related bodies is legally required to be available in Welsh. Due to the popularity of Microsoft Edge, particularly with governments and institutions, developers cannot reliably use the Intl based APIs. The only known workarounds are: To use a formatting library instead of Intl Avoids using the ECMAScript APIs designed to solve problems for developers Additional client side and developer maintenance costs To include very bulky polyfills Popular polyfill, locale and timezone information exceeds 2MB of data for the client to load per website / web app. Unsure if this a bug or locale which is yet to be supported. Adding support for Welsh would be a huge step forward and greatly appreciated by developers working with government bodies. Even better would be adding support for the same languages Windows supports!46Views0likes0CommentsNew feature: change language and Locale of the NTP contents Version 81.0.387
I noticed we got this new option in the latest Edge insider Version 81.0.387.0 (Official build) canary (64-bit) the ability to change the location and languages for news content on the new tab page NTP as it was planned for January There are cases where Edge wouldn't be able to detect the actual location so this should take care of it.5.5KViews4likes6CommentsAdd an auto-detect option to the NTP language and locale settings
In the previous Edge insider canary update this feature was introduced https://techcommunity.microsoft.com/t5/discussions/new-feature-change-language-and-locale-of-the-ntp-contents/m-p/1099107 but there are lots of languages missing from that list. so if someone accidentally or for testing purposes, chose a foreign language from the list, and that person's native language is one of those that are missing from the list, there is no way for them to go back. like this incident: https://techcommunity.microsoft.com/t5/discussions/new-feature-change-language-and-locale-of-the-ntp-contents/m-p/1101552/highlight/true#M21144 so my suggestion is to add all of the languages to the list, make it complete at the top of the language list, add an "auto detect" option so Edge can detect the language and locale based on the IP address.915Views0likes0Comments