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