Files
wehub-resource-sync 2114b14ee0
Sync main into demo / sync (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:26 +08:00

21 lines
462 B
TypeScript

import type { NotesFolder } from './types';
import { strings } from './res/strings';
export function getFolderDisplayName(
folder: Pick<NotesFolder, 'id' | 'name' | 'system'>,
s: typeof strings,
): string {
if (!folder.system) return folder.name;
switch (folder.id) {
case 'all':
return s.folder_all;
case 'call':
return s.folder_call;
case 'unfiled':
return s.folder_unfiled;
default:
return folder.name;
}
}