You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-19 20:23:18 +03:00
Make current language more accurate
Make it reflect reality if it's been taken from the browser langs by just getting what was saet in counterpart rather than the saved setting. Also fix style.
This commit is contained in:
@ -116,6 +116,10 @@ export function normalizeLanguageKey(language) {
|
||||
return language.toLowerCase().replace("_","-");
|
||||
};
|
||||
|
||||
export function getCurrentLanguage() {
|
||||
return counterpart.getLocale();
|
||||
}
|
||||
|
||||
function getLangsJson() {
|
||||
const deferred = q.defer();
|
||||
|
||||
|
Reference in New Issue
Block a user