mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-20 03:16:46 -07:00
11 lines
427 B
TypeScript
11 lines
427 B
TypeScript
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.';
|
|
}
|