i18n: add support for rtl
This commit is contained in:
1 parent
37a7218bef
commit
ad3b9e5f36
5 files changed
+49
-29
No files matched your search
@@ -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="
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user