mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-26 09:21:48 -03:00
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:
@@ -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() {
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user