feat(yomitan): add read-only external profile support for shared dictionaries (#18)

This commit is contained in:
sudacode authored and GitHub committed 2026-03-12 01:17:34 -07:00
1 parent 68833c76c4
commit 1b56360a24
67 files changed
+1230 -135

No files matched your search

@@ -0,0 +1,10 @@
export function isCharacterDictionaryRuntimeEnabled(externalProfilePath: string): boolean {
return externalProfilePath.trim().length === 0;
}
export function getCharacterDictionaryDisabledReason(externalProfilePath: string): string | null {
if (isCharacterDictionaryRuntimeEnabled(externalProfilePath)) {
return null;
}
return 'Character dictionary is disabled while yomitan.externalProfilePath is configured.';
}