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

+5 -1
View File
@@ -68,7 +68,11 @@
<svelte:window bind:innerWidth={screenWidth} />
<div class="shell {$$props.class}" style={colorsToVars($colors)}>
<div
{...$$restProps}
class="shell {$$props.class}"
style={colorsToVars($colors)}
>
<slot />
<div
class="
+5 -1
View File
@@ -581,7 +581,11 @@
"fi": "Finnish",
"pt": "Portuguese",
"auto": "Auto",
"credits": "Credits"
"credits": "Credits",
"useRtl": {
"title": "Use RTL layout",
"description": "Use an RTL layout for RTL languages."
}
},
"view": {
"title": "Post style",
+2
View File
@@ -89,6 +89,7 @@ interface Settings {
showHidden: boolean
}
language: string | null
useRtl: boolean
translator: string | undefined
}
@@ -156,6 +157,7 @@ export const defaultSettings: Settings = {
showHidden: false,
},
language: env.PUBLIC_LANGUAGE ?? null,
useRtl: false,
translator: env.PUBLIC_TRANSLATOR ?? undefined,
}