dify/web/hooks/use-metadata.ts
Yeuoly 403e2d58b9
Introduce Plugins (#13836)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Signed-off-by: -LAN- <laipz8200@outlook.com>
Signed-off-by: xhe <xw897002528@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: takatost <takatost@gmail.com>
Co-authored-by: kurokobo <kuro664@gmail.com>
Co-authored-by: Novice Lee <novicelee@NoviPro.local>
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: AkaraChen <akarachen@outlook.com>
Co-authored-by: Yi <yxiaoisme@gmail.com>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: JzoNg <jzongcode@gmail.com>
Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: Hiroshi Fujita <fujita-h@users.noreply.github.com>
Co-authored-by: AkaraChen <85140972+AkaraChen@users.noreply.github.com>
Co-authored-by: NFish <douxc512@gmail.com>
Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com>
Co-authored-by: 非法操作 <hjlarry@163.com>
Co-authored-by: Novice <857526207@qq.com>
Co-authored-by: Hiroki Nagai <82458324+nagaihiroki-git@users.noreply.github.com>
Co-authored-by: Gen Sato <52241300+halogen22@users.noreply.github.com>
Co-authored-by: eux <euxuuu@gmail.com>
Co-authored-by: huangzhuo1949 <167434202+huangzhuo1949@users.noreply.github.com>
Co-authored-by: huangzhuo <huangzhuo1@xiaomi.com>
Co-authored-by: lotsik <lotsik@mail.ru>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: nite-knite <nkCoding@gmail.com>
Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: gakkiyomi <gakkiyomi@aliyun.com>
Co-authored-by: CN-P5 <heibai2006@gmail.com>
Co-authored-by: CN-P5 <heibai2006@qq.com>
Co-authored-by: Chuehnone <1897025+chuehnone@users.noreply.github.com>
Co-authored-by: yihong <zouzou0208@gmail.com>
Co-authored-by: Kevin9703 <51311316+Kevin9703@users.noreply.github.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: Boris Feld <lothiraldan@gmail.com>
Co-authored-by: mbo <himabo@gmail.com>
Co-authored-by: mabo <mabo@aeyes.ai>
Co-authored-by: Warren Chen <warren.chen830@gmail.com>
Co-authored-by: JzoNgKVO <27049666+JzoNgKVO@users.noreply.github.com>
Co-authored-by: jiandanfeng <chenjh3@wangsu.com>
Co-authored-by: zhu-an <70234959+xhdd123321@users.noreply.github.com>
Co-authored-by: zhaoqingyu.1075 <zhaoqingyu.1075@bytedance.com>
Co-authored-by: 海狸大師 <86974027+yenslife@users.noreply.github.com>
Co-authored-by: Xu Song <xusong.vip@gmail.com>
Co-authored-by: rayshaw001 <396301947@163.com>
Co-authored-by: Ding Jiatong <dingjiatong@gmail.com>
Co-authored-by: Bowen Liang <liangbowen@gf.com.cn>
Co-authored-by: JasonVV <jasonwangiii@outlook.com>
Co-authored-by: le0zh <newlight@qq.com>
Co-authored-by: zhuxinliang <zhuxinliang@didiglobal.com>
Co-authored-by: k-zaku <zaku99@outlook.jp>
Co-authored-by: luckylhb90 <luckylhb90@gmail.com>
Co-authored-by: hobo.l <hobo.l@binance.com>
Co-authored-by: jiangbo721 <365065261@qq.com>
Co-authored-by: 刘江波 <jiangbo721@163.com>
Co-authored-by: Shun Miyazawa <34241526+miya@users.noreply.github.com>
Co-authored-by: EricPan <30651140+Egfly@users.noreply.github.com>
Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: sino <sino2322@gmail.com>
Co-authored-by: Jhvcc <37662342+Jhvcc@users.noreply.github.com>
Co-authored-by: lowell <lowell.hu@zkteco.in>
Co-authored-by: Boris Polonsky <BorisPolonsky@users.noreply.github.com>
Co-authored-by: Ademílson Tonato <ademilsonft@outlook.com>
Co-authored-by: Ademílson Tonato <ademilson.tonato@refurbed.com>
Co-authored-by: IWAI, Masaharu <iwaim.sub@gmail.com>
Co-authored-by: Yueh-Po Peng (Yabi) <94939112+y10ab1@users.noreply.github.com>
Co-authored-by: Jason <ggbbddjm@gmail.com>
Co-authored-by: Xin Zhang <sjhpzx@gmail.com>
Co-authored-by: yjc980121 <3898524+yjc980121@users.noreply.github.com>
Co-authored-by: heyszt <36215648+hieheihei@users.noreply.github.com>
Co-authored-by: Abdullah AlOsaimi <osaimiacc@gmail.com>
Co-authored-by: Abdullah AlOsaimi <189027247+osaimi@users.noreply.github.com>
Co-authored-by: Yingchun Lai <laiyingchun@apache.org>
Co-authored-by: Hash Brown <hi@xzd.me>
Co-authored-by: zuodongxu <192560071+zuodongxu@users.noreply.github.com>
Co-authored-by: Masashi Tomooka <tmokmss@users.noreply.github.com>
Co-authored-by: aplio <ryo.091219@gmail.com>
Co-authored-by: Obada Khalili <54270856+obadakhalili@users.noreply.github.com>
Co-authored-by: Nam Vu <zuzoovn@gmail.com>
Co-authored-by: Kei YAMAZAKI <1715090+kei-yamazaki@users.noreply.github.com>
Co-authored-by: TechnoHouse <13776377+deephbz@users.noreply.github.com>
Co-authored-by: Riddhimaan-Senapati <114703025+Riddhimaan-Senapati@users.noreply.github.com>
Co-authored-by: MaFee921 <31881301+2284730142@users.noreply.github.com>
Co-authored-by: te-chan <t-nakanome@sakura-is.co.jp>
Co-authored-by: HQidea <HQidea@users.noreply.github.com>
Co-authored-by: Joshbly <36315710+Joshbly@users.noreply.github.com>
Co-authored-by: xhe <xw897002528@gmail.com>
Co-authored-by: weiwenyan-dev <154779315+weiwenyan-dev@users.noreply.github.com>
Co-authored-by: ex_wenyan.wei <ex_wenyan.wei@tcl.com>
Co-authored-by: engchina <12236799+engchina@users.noreply.github.com>
Co-authored-by: engchina <atjapan2015@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 呆萌闷油瓶 <253605712@qq.com>
Co-authored-by: Kemal <kemalmeler@outlook.com>
Co-authored-by: Lazy_Frog <4590648+lazyFrogLOL@users.noreply.github.com>
Co-authored-by: Yi Xiao <54782454+YIXIAO0@users.noreply.github.com>
Co-authored-by: Steven sun <98230804+Tuyohai@users.noreply.github.com>
Co-authored-by: steven <sunzwj@digitalchina.com>
Co-authored-by: Kalo Chin <91766386+fdb02983rhy@users.noreply.github.com>
Co-authored-by: Katy Tao <34019945+KatyTao@users.noreply.github.com>
Co-authored-by: depy <42985524+h4ckdepy@users.noreply.github.com>
Co-authored-by: 胡春东 <gycm520@gmail.com>
Co-authored-by: Junjie.M <118170653@qq.com>
Co-authored-by: MuYu <mr.muzea@gmail.com>
Co-authored-by: Naoki Takashima <39912547+takatea@users.noreply.github.com>
Co-authored-by: Summer-Gu <37869445+gubinjie@users.noreply.github.com>
Co-authored-by: Fei He <droxer.he@gmail.com>
Co-authored-by: ybalbert001 <120714773+ybalbert001@users.noreply.github.com>
Co-authored-by: Yuanbo Li <ybalbert@amazon.com>
Co-authored-by: douxc <7553076+douxc@users.noreply.github.com>
Co-authored-by: liuzhenghua <1090179900@qq.com>
Co-authored-by: Wu Jiayang <62842862+Wu-Jiayang@users.noreply.github.com>
Co-authored-by: Your Name <you@example.com>
Co-authored-by: kimjion <45935338+kimjion@users.noreply.github.com>
Co-authored-by: AugNSo <song.tiankai@icloud.com>
Co-authored-by: llinvokerl <38915183+llinvokerl@users.noreply.github.com>
Co-authored-by: liusurong.lsr <liusurong.lsr@alibaba-inc.com>
Co-authored-by: Vasu Negi <vasu-negi@users.noreply.github.com>
Co-authored-by: Hundredwz <1808096180@qq.com>
Co-authored-by: Xiyuan Chen <52963600+GareArc@users.noreply.github.com>
2025-02-17 17:05:13 +08:00

396 lines
15 KiB
TypeScript

'use client'
import { useTranslation } from 'react-i18next'
import { formatFileSize, formatNumber, formatTime } from '@/utils/format'
import { type DocType, ProcessMode } from '@/models/datasets'
import useTimestamp from '@/hooks/use-timestamp'
export type inputType = 'input' | 'select' | 'textarea'
export type metadataType = DocType | 'originInfo' | 'technicalParameters'
type MetadataMap =
Record<
metadataType,
{
text: string
allowEdit?: boolean
icon?: React.ReactNode
iconName?: string
subFieldsMap: Record<
string,
{
label: string
inputType?: inputType
field?: string
render?: (value: any, total?: number) => React.ReactNode | string
}
>
}
>
const fieldPrefix = 'datasetDocuments.metadata.field'
export const useMetadataMap = (): MetadataMap => {
const { t } = useTranslation()
const { formatTime: formatTimestamp } = useTimestamp()
return {
book: {
text: t('datasetDocuments.metadata.type.book'),
iconName: 'bookOpen',
subFieldsMap: {
title: { label: t(`${fieldPrefix}.book.title`) },
language: {
label: t(`${fieldPrefix}.book.language`),
inputType: 'select',
},
author: { label: t(`${fieldPrefix}.book.author`) },
publisher: { label: t(`${fieldPrefix}.book.publisher`) },
publication_date: { label: t(`${fieldPrefix}.book.publicationDate`) },
isbn: { label: t(`${fieldPrefix}.book.ISBN`) },
category: {
label: t(`${fieldPrefix}.book.category`),
inputType: 'select',
},
},
},
web_page: {
text: t('datasetDocuments.metadata.type.webPage'),
iconName: 'globe',
subFieldsMap: {
'title': { label: t(`${fieldPrefix}.webPage.title`) },
'url': { label: t(`${fieldPrefix}.webPage.url`) },
'language': {
label: t(`${fieldPrefix}.webPage.language`),
inputType: 'select',
},
'author/publisher': { label: t(`${fieldPrefix}.webPage.authorPublisher`) },
'publish_date': { label: t(`${fieldPrefix}.webPage.publishDate`) },
'topic/keywords': { label: t(`${fieldPrefix}.webPage.topicKeywords`) },
'description': { label: t(`${fieldPrefix}.webPage.description`) },
},
},
paper: {
text: t('datasetDocuments.metadata.type.paper'),
iconName: 'graduationHat',
subFieldsMap: {
'title': { label: t(`${fieldPrefix}.paper.title`) },
'language': {
label: t(`${fieldPrefix}.paper.language`),
inputType: 'select',
},
'author': { label: t(`${fieldPrefix}.paper.author`) },
'publish_date': { label: t(`${fieldPrefix}.paper.publishDate`) },
'journal/conference_name': {
label: t(`${fieldPrefix}.paper.journalConferenceName`),
},
'volume/issue/page_numbers': { label: t(`${fieldPrefix}.paper.volumeIssuePage`) },
'doi': { label: t(`${fieldPrefix}.paper.DOI`) },
'topic/keywords': { label: t(`${fieldPrefix}.paper.topicKeywords`) },
'abstract': {
label: t(`${fieldPrefix}.paper.abstract`),
inputType: 'textarea',
},
},
},
social_media_post: {
text: t('datasetDocuments.metadata.type.socialMediaPost'),
iconName: 'atSign',
subFieldsMap: {
'platform': { label: t(`${fieldPrefix}.socialMediaPost.platform`) },
'author/username': {
label: t(`${fieldPrefix}.socialMediaPost.authorUsername`),
},
'publish_date': { label: t(`${fieldPrefix}.socialMediaPost.publishDate`) },
'post_url': { label: t(`${fieldPrefix}.socialMediaPost.postURL`) },
'topics/tags': { label: t(`${fieldPrefix}.socialMediaPost.topicsTags`) },
},
},
personal_document: {
text: t('datasetDocuments.metadata.type.personalDocument'),
iconName: 'file',
subFieldsMap: {
'title': { label: t(`${fieldPrefix}.personalDocument.title`) },
'author': { label: t(`${fieldPrefix}.personalDocument.author`) },
'creation_date': {
label: t(`${fieldPrefix}.personalDocument.creationDate`),
},
'last_modified_date': {
label: t(`${fieldPrefix}.personalDocument.lastModifiedDate`),
},
'document_type': {
label: t(`${fieldPrefix}.personalDocument.documentType`),
inputType: 'select',
},
'tags/category': {
label: t(`${fieldPrefix}.personalDocument.tagsCategory`),
},
},
},
business_document: {
text: t('datasetDocuments.metadata.type.businessDocument'),
iconName: 'briefcase',
subFieldsMap: {
'title': { label: t(`${fieldPrefix}.businessDocument.title`) },
'author': { label: t(`${fieldPrefix}.businessDocument.author`) },
'creation_date': {
label: t(`${fieldPrefix}.businessDocument.creationDate`),
},
'last_modified_date': {
label: t(`${fieldPrefix}.businessDocument.lastModifiedDate`),
},
'document_type': {
label: t(`${fieldPrefix}.businessDocument.documentType`),
inputType: 'select',
},
'department/team': {
label: t(`${fieldPrefix}.businessDocument.departmentTeam`),
},
},
},
im_chat_log: {
text: t('datasetDocuments.metadata.type.IMChat'),
iconName: 'messageTextCircle',
subFieldsMap: {
'chat_platform': { label: t(`${fieldPrefix}.IMChat.chatPlatform`) },
'chat_participants/group_name': {
label: t(`${fieldPrefix}.IMChat.chatPartiesGroupName`),
},
'start_date': { label: t(`${fieldPrefix}.IMChat.startDate`) },
'end_date': { label: t(`${fieldPrefix}.IMChat.endDate`) },
'participants': { label: t(`${fieldPrefix}.IMChat.participants`) },
'topicKeywords': {
label: t(`${fieldPrefix}.IMChat.topicKeywords`),
inputType: 'textarea',
},
'fileType': { label: t(`${fieldPrefix}.IMChat.fileType`) },
},
},
wikipedia_entry: {
text: t('datasetDocuments.metadata.type.wikipediaEntry'),
allowEdit: false,
subFieldsMap: {
'title': { label: t(`${fieldPrefix}.wikipediaEntry.title`) },
'language': {
label: t(`${fieldPrefix}.wikipediaEntry.language`),
inputType: 'select',
},
'web_page_url': { label: t(`${fieldPrefix}.wikipediaEntry.webpageURL`) },
'editor/contributor': {
label: t(`${fieldPrefix}.wikipediaEntry.editorContributor`),
},
'last_edit_date': {
label: t(`${fieldPrefix}.wikipediaEntry.lastEditDate`),
},
'summary/introduction': {
label: t(`${fieldPrefix}.wikipediaEntry.summaryIntroduction`),
inputType: 'textarea',
},
},
},
synced_from_notion: {
text: t('datasetDocuments.metadata.type.notion'),
allowEdit: false,
subFieldsMap: {
'title': { label: t(`${fieldPrefix}.notion.title`) },
'language': { label: t(`${fieldPrefix}.notion.lang`), inputType: 'select' },
'author/creator': { label: t(`${fieldPrefix}.notion.author`) },
'creation_date': { label: t(`${fieldPrefix}.notion.createdTime`) },
'last_modified_date': {
label: t(`${fieldPrefix}.notion.lastModifiedTime`),
},
'notion_page_link': { label: t(`${fieldPrefix}.notion.url`) },
'category/tags': { label: t(`${fieldPrefix}.notion.tag`) },
'description': { label: t(`${fieldPrefix}.notion.desc`) },
},
},
synced_from_github: {
text: t('datasetDocuments.metadata.type.github'),
allowEdit: false,
subFieldsMap: {
'repository_name': { label: t(`${fieldPrefix}.github.repoName`) },
'repository_description': { label: t(`${fieldPrefix}.github.repoDesc`) },
'repository_owner/organization': { label: t(`${fieldPrefix}.github.repoOwner`) },
'code_filename': { label: t(`${fieldPrefix}.github.fileName`) },
'code_file_path': { label: t(`${fieldPrefix}.github.filePath`) },
'programming_language': { label: t(`${fieldPrefix}.github.programmingLang`) },
'github_link': { label: t(`${fieldPrefix}.github.url`) },
'open_source_license': { label: t(`${fieldPrefix}.github.license`) },
'commit_date': { label: t(`${fieldPrefix}.github.lastCommitTime`) },
'commit_author': {
label: t(`${fieldPrefix}.github.lastCommitAuthor`),
},
},
},
originInfo: {
text: '',
allowEdit: false,
subFieldsMap: {
'name': { label: t(`${fieldPrefix}.originInfo.originalFilename`) },
'data_source_info.upload_file.size': {
label: t(`${fieldPrefix}.originInfo.originalFileSize`),
render: value => formatFileSize(value),
},
'created_at': {
label: t(`${fieldPrefix}.originInfo.uploadDate`),
render: value => formatTimestamp(value, t('datasetDocuments.metadata.dateTimeFormat') as string),
},
'completed_at': {
label: t(`${fieldPrefix}.originInfo.lastUpdateDate`),
render: value => formatTimestamp(value, t('datasetDocuments.metadata.dateTimeFormat') as string),
},
'data_source_type': {
label: t(`${fieldPrefix}.originInfo.source`),
render: value => t(`datasetDocuments.metadata.source.${value}`),
},
},
},
technicalParameters: {
text: t('datasetDocuments.metadata.type.technicalParameters'),
allowEdit: false,
subFieldsMap: {
'dataset_process_rule.mode': {
label: t(`${fieldPrefix}.technicalParameters.segmentSpecification`),
render: value => value === ProcessMode.general ? (t('datasetDocuments.embedding.custom') as string) : (t('datasetDocuments.embedding.hierarchical') as string),
},
'dataset_process_rule.rules.segmentation.max_tokens': {
label: t(`${fieldPrefix}.technicalParameters.segmentLength`),
render: value => formatNumber(value),
},
'average_segment_length': {
label: t(`${fieldPrefix}.technicalParameters.avgParagraphLength`),
render: value => `${formatNumber(value)} characters`,
},
'segment_count': {
label: t(`${fieldPrefix}.technicalParameters.paragraphs`),
render: value => `${formatNumber(value)} paragraphs`,
},
'hit_count': {
label: t(`${fieldPrefix}.technicalParameters.hitCount`),
render: (value, total) => {
const v = value || 0
return `${!total ? 0 : ((v / total) * 100).toFixed(2)}% (${v}/${total})`
},
},
'indexing_latency': {
label: t(`${fieldPrefix}.technicalParameters.embeddingTime`),
render: value => formatTime(value),
},
'tokens': {
label: t(`${fieldPrefix}.technicalParameters.embeddedSpend`),
render: value => `${formatNumber(value)} tokens`,
},
},
},
}
}
const langPrefix = 'datasetDocuments.metadata.languageMap.'
export const useLanguages = () => {
const { t } = useTranslation()
return {
zh: t(`${langPrefix}zh`),
en: t(`${langPrefix}en`),
es: t(`${langPrefix}es`),
fr: t(`${langPrefix}fr`),
de: t(`${langPrefix}de`),
ja: t(`${langPrefix}ja`),
ko: t(`${langPrefix}ko`),
ru: t(`${langPrefix}ru`),
ar: t(`${langPrefix}ar`),
pt: t(`${langPrefix}pt`),
it: t(`${langPrefix}it`),
nl: t(`${langPrefix}nl`),
pl: t(`${langPrefix}pl`),
sv: t(`${langPrefix}sv`),
tr: t(`${langPrefix}tr`),
he: t(`${langPrefix}he`),
hi: t(`${langPrefix}hi`),
da: t(`${langPrefix}da`),
fi: t(`${langPrefix}fi`),
no: t(`${langPrefix}no`),
hu: t(`${langPrefix}hu`),
el: t(`${langPrefix}el`),
cs: t(`${langPrefix}cs`),
th: t(`${langPrefix}th`),
id: t(`${langPrefix}id`),
ro: t(`${langPrefix}ro`),
}
}
const bookCategoryPrefix = 'datasetDocuments.metadata.categoryMap.book.'
export const useBookCategories = () => {
const { t } = useTranslation()
return {
fiction: t(`${bookCategoryPrefix}fiction`),
biography: t(`${bookCategoryPrefix}biography`),
history: t(`${bookCategoryPrefix}history`),
science: t(`${bookCategoryPrefix}science`),
technology: t(`${bookCategoryPrefix}technology`),
education: t(`${bookCategoryPrefix}education`),
philosophy: t(`${bookCategoryPrefix}philosophy`),
religion: t(`${bookCategoryPrefix}religion`),
socialSciences: t(`${bookCategoryPrefix}socialSciences`),
art: t(`${bookCategoryPrefix}art`),
travel: t(`${bookCategoryPrefix}travel`),
health: t(`${bookCategoryPrefix}health`),
selfHelp: t(`${bookCategoryPrefix}selfHelp`),
businessEconomics: t(`${bookCategoryPrefix}businessEconomics`),
cooking: t(`${bookCategoryPrefix}cooking`),
childrenYoungAdults: t(`${bookCategoryPrefix}childrenYoungAdults`),
comicsGraphicNovels: t(`${bookCategoryPrefix}comicsGraphicNovels`),
poetry: t(`${bookCategoryPrefix}poetry`),
drama: t(`${bookCategoryPrefix}drama`),
other: t(`${bookCategoryPrefix}other`),
}
}
const personalDocCategoryPrefix
= 'datasetDocuments.metadata.categoryMap.personalDoc.'
export const usePersonalDocCategories = () => {
const { t } = useTranslation()
return {
notes: t(`${personalDocCategoryPrefix}notes`),
blogDraft: t(`${personalDocCategoryPrefix}blogDraft`),
diary: t(`${personalDocCategoryPrefix}diary`),
researchReport: t(`${personalDocCategoryPrefix}researchReport`),
bookExcerpt: t(`${personalDocCategoryPrefix}bookExcerpt`),
schedule: t(`${personalDocCategoryPrefix}schedule`),
list: t(`${personalDocCategoryPrefix}list`),
projectOverview: t(`${personalDocCategoryPrefix}projectOverview`),
photoCollection: t(`${personalDocCategoryPrefix}photoCollection`),
creativeWriting: t(`${personalDocCategoryPrefix}creativeWriting`),
codeSnippet: t(`${personalDocCategoryPrefix}codeSnippet`),
designDraft: t(`${personalDocCategoryPrefix}designDraft`),
personalResume: t(`${personalDocCategoryPrefix}personalResume`),
other: t(`${personalDocCategoryPrefix}other`),
}
}
const businessDocCategoryPrefix
= 'datasetDocuments.metadata.categoryMap.businessDoc.'
export const useBusinessDocCategories = () => {
const { t } = useTranslation()
return {
meetingMinutes: t(`${businessDocCategoryPrefix}meetingMinutes`),
researchReport: t(`${businessDocCategoryPrefix}researchReport`),
proposal: t(`${businessDocCategoryPrefix}proposal`),
employeeHandbook: t(`${businessDocCategoryPrefix}employeeHandbook`),
trainingMaterials: t(`${businessDocCategoryPrefix}trainingMaterials`),
requirementsDocument: t(`${businessDocCategoryPrefix}requirementsDocument`),
designDocument: t(`${businessDocCategoryPrefix}designDocument`),
productSpecification: t(`${businessDocCategoryPrefix}productSpecification`),
financialReport: t(`${businessDocCategoryPrefix}financialReport`),
marketAnalysis: t(`${businessDocCategoryPrefix}marketAnalysis`),
projectPlan: t(`${businessDocCategoryPrefix}projectPlan`),
teamStructure: t(`${businessDocCategoryPrefix}teamStructure`),
policiesProcedures: t(`${businessDocCategoryPrefix}policiesProcedures`),
contractsAgreements: t(`${businessDocCategoryPrefix}contractsAgreements`),
emailCorrespondence: t(`${businessDocCategoryPrefix}emailCorrespondence`),
other: t(`${businessDocCategoryPrefix}other`),
}
}