chore(i18n): add translation for electron integration settings

This commit is contained in:
Elian Doran 2024-12-09 22:46:48 +02:00
parent 0b27a72c31
commit f1241b2ebf
No known key found for this signature in database
2 changed files with 14 additions and 6 deletions

View File

@ -4,25 +4,25 @@ import utils from "../../../../services/utils.js";
const TPL = ` const TPL = `
<div class="options-section"> <div class="options-section">
<h4>Desktop application</h4> <h4>${t("electron_integration.desktop-application")}</h4>
<div class="side-checkbox"> <div class="side-checkbox">
<label class="form-check"> <label class="form-check">
<input type="checkbox" class="native-title-bar form-check-input" /> <input type="checkbox" class="native-title-bar form-check-input" />
<strong>Native title bar</strong> <strong>${t("electron_integration.native-title-bar")}</strong>
<p>For Windows and macOS, keeping the native title bar off makes the application look more compact. On Linux, keeping the native title bar on integrates better with the rest of the system.</p> <p>${t("electron_integration.native-title-bar-description")}</p>
</label> </label>
</div> </div>
<div class="side-checkbox"> <div class="side-checkbox">
<label class="form-check"> <label class="form-check">
<input type="checkbox" class="background-effects form-check-input" /> <input type="checkbox" class="background-effects form-check-input" />
<strong>Enable background effects (Windows 11 only)</strong> <strong>${t("electron_integration.background-effects")}</strong>
<p>The Mica effect adds a blurred, stylish background to app windows, creating depth and a modern look.</p> <p>${t("electron_integration.background-effects-description")}</p>
</label> </label>
</div> </div>
<button class="btn btn-micro restart-app-button">Restart the application to view the changes</button> <button class="btn btn-micro restart-app-button">${t("electron_integration.restart-app-button")}</button>
</div> </div>
`; `;

View File

@ -1574,5 +1574,13 @@
"open_note_in_new_tab": "Open note in a new tab", "open_note_in_new_tab": "Open note in a new tab",
"open_note_in_new_split": "Open note in a new split", "open_note_in_new_split": "Open note in a new split",
"open_note_in_new_window": "Open note in a new window" "open_note_in_new_window": "Open note in a new window"
},
"electron_integration": {
"desktop-application": "Desktop Application",
"native-title-bar": "Native title bar",
"native-title-bar-description": "For Windows and macOS, keeping the native title bar off makes the application look more compact. On Linux, keeping the native title bar on integrates better with the rest of the system.",
"background-effects": "Enable background effects (Windows 11 only)",
"background-effects-description": "The Mica effect adds a blurred, stylish background to app windows, creating depth and a modern look.",
"restart-app-button": "Restart the application to view the changes"
} }
} }