Fix language picker sync & optimize features.webm#575
Merged
Sammy99jsp merged 2 commits intoAvdan-OS:devfrom Feb 24, 2026
Merged
Fix language picker sync & optimize features.webm#575Sammy99jsp merged 2 commits intoAvdan-OS:devfrom
Sammy99jsp merged 2 commits intoAvdan-OS:devfrom
Conversation
Sammy99jsp
reviewed
Feb 24, 2026
Member
|
Thank god. Finally someone listened to me about using an appropriate codec + preset to encode videos! |
Member
|
Also, as far as I know, Froxcey is not maintaining this repo or anything AvOS-related for the forseable future. |
Member
Author
oh, okii, good to know! |
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.
This PR resolves two long-standing issues affecting website localization and load performance
1. Translation Picker Sync Fix
Issue: The site correctly displayed the user's localized language, but the top-nav language picker component incorrectly defaulted to GB on initial load if
localStoragewas empty.Fix: Updated the
useEffectinitialization in the TranslationList.tsx component to fallback to the browser's native locale.Logic Explanation: It first pulls from
localStorage. If that's empty, it usesIntl.NumberFormat().resolvedOptions().locale. It then performs an exact match against our language data; if an exact match isn't found (e.g.,en-AU), it performs a fallback "language-only" match (checking for justen) to ensure the picker stays in sync.Resolves: #574
2. Media Optimisation
Issue: The features.webm file was over 90MB. Way too big for a web asset.
Fix: Transcoded the raw WebM file using Handbrake (VP9 codec, constant quality, slower compression preset).
Resolves: #455
Files Changed
Note: Go easy on me, this is my first PR for this repo and I haven't touched anything in the org for months. Just crawled out of my cave to ship these fixes. Hope it looks good!