mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-08-30 23:37:08 +00:00
refactor: consume Commonlib as a package
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { $msg } from "@vrtmrz/livesync-commonlib/compat/common/i18n";
|
||||
import type { MessageTranslator } from "@vrtmrz/livesync-commonlib/context";
|
||||
|
||||
/** Supplies the LiveSync language catalogue through the Commonlib host boundary. */
|
||||
export const translateLiveSyncMessage: MessageTranslator = (key, params) =>
|
||||
$msg(key as Parameters<typeof $msg>[0], params === undefined ? undefined : { ...params });
|
||||
Reference in New Issue
Block a user