Fix Arabic RTL support: correct locale code and CSS syntax

- Rename ar-AR to ar-SA (valid BCP 47 code for Saudi Arabia)
- Fix missing dot in CSS selector: .news-section .news-header
- Add trailing newline to ar-SA.json

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
sanasol
2026-02-22 23:00:08 +01:00
parent 27c220a757
commit fb90277be9
3 changed files with 4 additions and 4 deletions

View File

@@ -13,11 +13,11 @@ const i18n = (() => {
{ code: 'sv-SE', name: 'Swedish (Sweden)' }, { code: 'sv-SE', name: 'Swedish (Sweden)' },
{ code: 'tr-TR', name: 'Turkish (Turkey)' }, { code: 'tr-TR', name: 'Turkish (Turkey)' },
{ code: 'id-ID', name: 'Indonesian (Indonesia)' }, { code: 'id-ID', name: 'Indonesian (Indonesia)' },
{ code: 'ar-AR', name: 'Arabic (Saudi Arabia)' } { code: 'ar-SA', name: 'Arabic (Saudi Arabia)' }
]; ];
// RTL languages // RTL languages
const rtlLanguages = ['ar-AR']; const rtlLanguages = ['ar-SA'];
// Check if current language is RTL // Check if current language is RTL
function isRTL() { function isRTL() {

View File

@@ -254,4 +254,4 @@
"installingGameFiles": "جاري تثبيت ملفات اللعبة...", "installingGameFiles": "جاري تثبيت ملفات اللعبة...",
"installComplete": "اكتمل التثبيت!" "installComplete": "اكتمل التثبيت!"
} }
} }

View File

@@ -131,7 +131,7 @@ body.rtl .mods-header {
flex-direction: row-reverse; flex-direction: row-reverse;
} }
body.rtl .news-section news-header{ body.rtl .news-section .news-header {
flex-direction: row-reverse; flex-direction: row-reverse;
} }