chore(options/appearance): use translations

This commit is contained in:
Elian Doran 2025-12-17 15:44:01 +02:00
parent 1ed83b3598
commit d0b0a13b6d
No known key found for this signature in database
2 changed files with 7 additions and 4 deletions

View File

@ -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": "%"

View File

@ -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>