i18n: add support for rtl

This commit is contained in:
Xylight committed 2024-07-06 13:28:11 -07:00
1 parent 37a7218bef
commit ad3b9e5f36
5 files changed
+49 -29

No files matched your search

+2
View File
@@ -27,6 +27,7 @@
import { site } from '$lib/lemmy.js'
import ExpandableImage from '$lib/components/ui/ExpandableImage.svelte'
import { LINKED_INSTANCE_URL } from '$lib/instance'
import { locale } from '$lib/translations'
nProgress.configure({
minimum: 0.4,
@@ -105,6 +106,7 @@
Skip Navigation
</Button>
<Shell
dir={$locale == 'he' && $userSettings.useRtl ? 'rtl' : 'ltr'}
class="min-h-screen {$userSettings.font == 'inter'
? 'font-inter'
: $userSettings.font == 'system'