Repository navigation
fix(agora): correct language defaults - #1298
Merged
Merged
Conversation
Preserve saved display-language preferences, prefer the Intl runtime locale on Chromium derivatives, and retain navigator-language precedence on Firefox and Safari. Use validated, viewer-scoped conversation detection metadata as a last fallback before English without additional requests or polling. Load app translations and matching Quasar language packs together before rendering, with one 500 ms deadline and immediate English rendering fallback on errors. Retry registered failures once per locale after mount without reloading or hiding the page. Keep preferred request and persisted languages separate from temporary rendering fallbacks, and reject stale account, navigation, and language-selection operations. Use matching Quasar packs for supported languages, including Chinese script mappings and Russian controls for Kyrgyz while preserving the Kyrgyz application locale. Infer lazy i18n types without suppression comments, consolidate preference saving, remove obsolete error translations, and keep display/spoken preference updates independent. Snapshot conversation request language and viewer identity from typed query keys, preserve explicit Accept-Language headers, and discard aborted responses before redirects or cache writes. Keep parsed backend preferences authoritative on resource failure and prevent failed resource loading from restoring cleared account preferences. Add regression coverage for browser families, precedence, initial load deadlines, pack mappings, background recovery, account/navigation races, request snapshots, and cancellation. Verify 1,732 frontend tests, Vue/TypeScript checking, targeted ESLint, and diff whitespace checks. Exclude the operational SQL repair; it will be run manually and is not part of this commit. Deploy: agora
✅ Deploy Preview for agoracitizen canceled.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
zh-Hans→zh-CN,zh-Hant→zh-TW, and Russian Quasar controls for Kyrgyz while keeping the application localeky.Validation
cd services/agora && pnpm test— 1,732 tests across 230 files passed.cd services/agora && pnpm exec vue-tsc --noEmit— passed.git diff --staged --check— passed.Manual smoke checks
Operational notes
main; unrelated pending work is excluded.Deploy: agora