mirror of
https://github.com/zadam/trilium.git
synced 2025-12-20 22:34:23 +01:00
chore(options/appearance): use translations
This commit is contained in:
parent
1ed83b3598
commit
d0b0a13b6d
@ -2116,7 +2116,10 @@
|
|||||||
},
|
},
|
||||||
"settings_appearance": {
|
"settings_appearance": {
|
||||||
"related_code_blocks": "Color scheme for code blocks in text notes",
|
"related_code_blocks": "Color scheme for code blocks in text notes",
|
||||||
"related_code_notes": "Color scheme for code notes"
|
"related_code_notes": "Color scheme for code notes",
|
||||||
|
"ui": "User interface",
|
||||||
|
"ui_old_layout": "Old layout",
|
||||||
|
"ui_new_layout": "New layout"
|
||||||
},
|
},
|
||||||
"units": {
|
"units": {
|
||||||
"percentage": "%"
|
"percentage": "%"
|
||||||
|
|||||||
@ -115,7 +115,7 @@ function LayoutSwitcher() {
|
|||||||
const [ newLayout, setNewLayout ] = useTriliumOptionBool("newLayout");
|
const [ newLayout, setNewLayout ] = useTriliumOptionBool("newLayout");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<OptionsSection title="User interface">
|
<OptionsSection title={t("settings_appearance.ui")}>
|
||||||
<RadioWithIllustration
|
<RadioWithIllustration
|
||||||
currentValue={newLayout ? "new-layout" : "old-layout"}
|
currentValue={newLayout ? "new-layout" : "old-layout"}
|
||||||
onChange={async newValue => {
|
onChange={async newValue => {
|
||||||
@ -123,8 +123,8 @@ function LayoutSwitcher() {
|
|||||||
reloadFrontendApp();
|
reloadFrontendApp();
|
||||||
}}
|
}}
|
||||||
values={[
|
values={[
|
||||||
{ key: "old-layout", text: "Old layout", illustration: <LayoutIllustration /> },
|
{ key: "old-layout", text: t("settings_appearance.ui_old_layout"), illustration: <LayoutIllustration /> },
|
||||||
{ key: "new-layout", text: "New layout", illustration: <LayoutIllustration isNewLayout /> }
|
{ key: "new-layout", text: t("settings_appearance.ui_new_layout"), illustration: <LayoutIllustration isNewLayout /> }
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</OptionsSection>
|
</OptionsSection>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user