Skip to content

Comments

Fix language picker sync & optimize features.webm#575

Merged
Sammy99jsp merged 2 commits intoAvdan-OS:devfrom
SunightMC:dev
Feb 24, 2026
Merged

Fix language picker sync & optimize features.webm#575
Sammy99jsp merged 2 commits intoAvdan-OS:devfrom
SunightMC:dev

Conversation

@SunightMC
Copy link
Member

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 localStorage was empty.

Fix: Updated the useEffect initialization 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 uses Intl.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 just en) 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!

@Sammy99jsp
Copy link
Member

Thank god. Finally someone listened to me about using an appropriate codec + preset to encode videos!
LGTM.

Copy link
Member

@Sammy99jsp Sammy99jsp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⬆️ ^_^

@Sammy99jsp
Copy link
Member

Also, as far as I know, Froxcey is not maintaining this repo or anything AvOS-related for the forseable future.

@Sammy99jsp Sammy99jsp removed the request for review from Froxcey February 24, 2026 23:06
@Sammy99jsp Sammy99jsp merged commit dd38c40 into Avdan-OS:dev Feb 24, 2026
1 check passed
@SunightMC
Copy link
Member Author

Also, as far as I know, Froxcey is not maintaining this repo or anything AvOS-related for the forseable future.

oh, okii, good to know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants