This commit is contained in:
Alexander Minkin 2022-10-28 22:46:44 +03:00
parent 270a8df288
commit 066cd1980f
Signed by: WerySkok
GPG Key ID: 88E9A2F3AFE44C30
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@ function usePrefferedLanguage(newLang) {
}
function browserPrefferedLanguage() {
if (navigator.languages.includes('ru')) {
if (
navigator.languages.includes('ru') ||
navigator.languages.includes('ru-RU')
) {
return 'ru';
}
return 'en';