Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(language): Update language store for auto language detection
This commit updates the `useLanguageStore` in `language.ts` to support auto language detection. Instead of hardcoding the language as "en", the store now sets the language to "auto". When updating the language using `updateLanguage` action, if the language parameter is "auto", it will use the auto-detected language value from `autoLanguage` instead. The `updateAvailableLanguages` action also updates the `availableLanguages` state using `gettext.available`.
- Loading branch information