in HuggingChat-Mac/Extensions/NSMenu+Extension.swift [61:75]
func item(
withLocalizedTitle localizedTitleKey: String,
inTable tableName: String = "MenuCommands",
fromBundle bundlePath: String = "/System/Library/Frameworks/AppKit.framework"
) -> NSMenuItem? {
guard let localizationResource = Bundle(path: bundlePath) else {
return nil;
}
return self.item(withTitle: NSLocalizedString(
localizedTitleKey,
tableName: tableName,
bundle: localizationResource,
comment: ""));
}