Add translation ids

This commit is contained in:
CRuiz
2025-01-22 13:41:18 -06:00
parent f2b667d75e
commit 73782c5389
15 changed files with 506 additions and 453 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
import { ItemView, WorkspaceLeaf } from "obsidian";
import LogPaneComponent from "./LogPane.svelte";
import type ObsidianLiveSyncPlugin from "../../../main.ts";
import { $tf } from "src/lib/src/common/i18n.ts";
export const VIEW_TYPE_LOG = "log-log";
//Log view
export class LogPaneView extends ItemView {
@@ -24,7 +25,8 @@ export class LogPaneView extends ItemView {
}
getDisplayText() {
return "Self-hosted LiveSync Log";
// TODO: This function is not reactive and does not update the title based on the current language
return $tf("logPane.title");
}
async onOpen() {