Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
Fix blank page being served where browser language settings like en or en-UK were uncritically used as the HTML Document language, even if translations weren't available for that exact locale. Now, the logic checks if a translation exists for the base language code (e.g., en), and if none is found, it falls back to en-US. This ensures that the document always has a valid locale that corresponds to available translations.
Checklist
[x] I have added a Label to the pull-request
[x] I have added tests, and done manual regression tests
[x] I have updated the documentation, if necessary
Summary & Motivation
Fix blank page being served where browser language settings like
en
oren-UK
were uncritically used as the HTML Document language, even if translations weren't available for that exact locale. Now, the logic checks if a translation exists for the base language code (e.g.,en
), and if none is found, it falls back toen-US
. This ensures that the document always has a valid locale that corresponds to available translations.Checklist