mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-26 11:03:21 +00:00
fix(i18n): wire Maintenance, Hatch and Fast Setup text to the Spanish catalogue
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
13 files changed
+363
-141
No files matched your search
@@ -2,18 +2,21 @@ import { type ConfigPassphraseStore } from "@vrtmrz/livesync-commonlib/compat/co
|
||||
import { LiveSyncSetting as Setting } from "./LiveSyncSetting.ts";
|
||||
import type { ObsidianLiveSyncSettingTab } from "./ObsidianLiveSyncSettingTab.ts";
|
||||
import type { PageFunctions } from "./SettingPane.ts";
|
||||
import { $msg } from "@/common/translation";
|
||||
|
||||
export function panePowerUsers(
|
||||
this: ObsidianLiveSyncSettingTab,
|
||||
paneEl: HTMLElement,
|
||||
{ addPanel }: PageFunctions
|
||||
): void {
|
||||
void addPanel(paneEl, "CouchDB Connection Tweak", undefined, this.onlyOnCouchDB).then((paneEl) => {
|
||||
void addPanel(paneEl, $msg("CouchDB Connection Tweak"), undefined, this.onlyOnCouchDB).then((paneEl) => {
|
||||
this.createEl(
|
||||
paneEl,
|
||||
"div",
|
||||
{
|
||||
text: `If you reached the payload size limit when using IBM Cloudant, please decrease batch size and batch limit to a lower value.`,
|
||||
text: $msg(
|
||||
"If you reached the payload size limit when using IBM Cloudant, please decrease batch size and batch limit to a lower value."
|
||||
),
|
||||
},
|
||||
undefined,
|
||||
this.onlyOnCouchDB
|
||||
@@ -26,15 +29,15 @@ export function panePowerUsers(
|
||||
});
|
||||
new Setting(paneEl).autoWireToggle("useTimeouts", { onUpdate: this.onlyOnCouchDB });
|
||||
});
|
||||
void addPanel(paneEl, "Configuration Encryption").then((paneEl) => {
|
||||
void addPanel(paneEl, $msg("Configuration Encryption")).then((paneEl) => {
|
||||
const passphrase_options: Record<ConfigPassphraseStore, string> = {
|
||||
"": "Default",
|
||||
LOCALSTORAGE: "Use a custom passphrase",
|
||||
ASK_AT_LAUNCH: "Ask an passphrase at every launch",
|
||||
"": $msg("Default"),
|
||||
LOCALSTORAGE: $msg("Use a custom passphrase"),
|
||||
ASK_AT_LAUNCH: $msg("Ask a passphrase at every launch"),
|
||||
};
|
||||
|
||||
new Setting(paneEl)
|
||||
.setName("Encrypting sensitive configuration items")
|
||||
.setName($msg("Encrypting sensitive configuration items"))
|
||||
.autoWireDropDown("configPassphraseStore", {
|
||||
options: passphrase_options,
|
||||
holdValue: true,
|
||||
@@ -45,7 +48,7 @@ export function panePowerUsers(
|
||||
}));
|
||||
new Setting(paneEl).addApplyButton(["configPassphrase", "configPassphraseStore"]);
|
||||
});
|
||||
void addPanel(paneEl, "Developer").then((paneEl) => {
|
||||
void addPanel(paneEl, $msg("Developer")).then((paneEl) => {
|
||||
new Setting(paneEl).autoWireToggle("enableDebugTools");
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user