From fb90277be9cf5f0b8a90195a7d089273b6be082b Mon Sep 17 00:00:00 2001 From: sanasol Date: Sun, 22 Feb 2026 23:00:08 +0100 Subject: [PATCH] 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 --- GUI/js/i18n.js | 4 ++-- GUI/locales/{ar-AR.json => ar-SA.json} | 2 +- GUI/style-RTL.css | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename GUI/locales/{ar-AR.json => ar-SA.json} (99%) diff --git a/GUI/js/i18n.js b/GUI/js/i18n.js index ed85a6a..a320370 100644 --- a/GUI/js/i18n.js +++ b/GUI/js/i18n.js @@ -13,11 +13,11 @@ const i18n = (() => { { code: 'sv-SE', name: 'Swedish (Sweden)' }, { code: 'tr-TR', name: 'Turkish (Turkey)' }, { code: 'id-ID', name: 'Indonesian (Indonesia)' }, - { code: 'ar-AR', name: 'Arabic (Saudi Arabia)' } + { code: 'ar-SA', name: 'Arabic (Saudi Arabia)' } ]; // RTL languages - const rtlLanguages = ['ar-AR']; + const rtlLanguages = ['ar-SA']; // Check if current language is RTL function isRTL() { diff --git a/GUI/locales/ar-AR.json b/GUI/locales/ar-SA.json similarity index 99% rename from GUI/locales/ar-AR.json rename to GUI/locales/ar-SA.json index 3ae57bb..cca6824 100644 --- a/GUI/locales/ar-AR.json +++ b/GUI/locales/ar-SA.json @@ -254,4 +254,4 @@ "installingGameFiles": "جاري تثبيت ملفات اللعبة...", "installComplete": "اكتمل التثبيت!" } -} \ No newline at end of file +} diff --git a/GUI/style-RTL.css b/GUI/style-RTL.css index 48bd820..ce8bb9f 100644 --- a/GUI/style-RTL.css +++ b/GUI/style-RTL.css @@ -131,7 +131,7 @@ body.rtl .mods-header { flex-direction: row-reverse; } -body.rtl .news-section news-header{ +body.rtl .news-section .news-header { flex-direction: row-reverse; }