MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / normalizeWeeklyNoteLocale

Function normalizeWeeklyNoteLocale

apps/desktop/src/main/vault.ts:801–805  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

799}
800
801function normalizeWeeklyNoteLocale(value: unknown): string {
802 if (typeof value !== 'string') return DEFAULT_WEEKLY_NOTE_LOCALE
803 const trimmed = value.trim()
804 return trimmed || DEFAULT_WEEKLY_NOTE_LOCALE
805}
806
807function normalizeWeeklyNotesDirectory(value: unknown): string {
808 if (typeof value !== 'string') return DEFAULT_WEEKLY_NOTES_DIRECTORY

Callers 2

normalizeVaultSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected