Skip to content

Commit 69c4ae1

Browse files
authored
feature: initial realization of internationalization of the Operator Market pages (#326)
feature: initial realization of internationalization of the OperatorMarket pages
1 parent b42dad2 commit 69c4ae1

File tree

15 files changed

+870
-512
lines changed

15 files changed

+870
-512
lines changed

frontend/src/i18n/locales/en/common.json

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,5 +1743,172 @@
17431743
"fileSize": "Size"
17441744
}
17451745
}
1746+
},
1747+
"operatorMarket": {
1748+
"title": "Operator Market",
1749+
"home": {
1750+
"title": "Operator Market",
1751+
"actions": {
1752+
"downloadExample": "Download Example Operator",
1753+
"upload": "Upload Operator"
1754+
},
1755+
"filters": {
1756+
"title": "Filters",
1757+
"hide": "Hide Filters",
1758+
"clear": "Clear",
1759+
"selectAll": "Select All",
1760+
"starStatus": "Favorite Status",
1761+
"starred": "Favorited"
1762+
},
1763+
"search": {
1764+
"placeholder": "Search operator name, description..."
1765+
},
1766+
"empty": {
1767+
"title": "No matching operators found",
1768+
"subtitle": "Try adjusting filters or search keywords"
1769+
},
1770+
"operations": {
1771+
"update": "Update",
1772+
"delete": "Delete",
1773+
"confirm": {
1774+
"title": "Confirm Delete",
1775+
"description": "This action cannot be undone. Continue?",
1776+
"okText": "Delete",
1777+
"cancelText": "Cancel"
1778+
},
1779+
"messages": {
1780+
"deleteSuccess": "Operator deleted successfully",
1781+
"deleteFailed": "Operator deletion failed",
1782+
"downloadSuccess": "File downloaded successfully"
1783+
}
1784+
}
1785+
},
1786+
"detail": {
1787+
"breadcrumb": {
1788+
"market": "Operator Market"
1789+
},
1790+
"tabs": {
1791+
"overview": "Overview",
1792+
"requirement": "System Requirements",
1793+
"documentation": "Documentation",
1794+
"changeLog": "Change Log"
1795+
},
1796+
"operations": {
1797+
"favorite": "Favorite",
1798+
"update": "Update",
1799+
"delete": "Delete",
1800+
"confirm": {
1801+
"title": "Confirm delete current operator?",
1802+
"description": "The operator cannot be recovered after deletion. Please proceed with caution.",
1803+
"okText": "Delete",
1804+
"cancelText": "Cancel"
1805+
},
1806+
"messages": {
1807+
"deleteSuccess": "Operator deleted successfully"
1808+
}
1809+
},
1810+
"overview": {
1811+
"title": "Basic Information",
1812+
"version": "Version",
1813+
"category": "Category",
1814+
"description": "Description",
1815+
"inputs": "Input Types",
1816+
"outputs": "Output Types",
1817+
"createdAt": "Created At",
1818+
"lastModified": "Last Modified",
1819+
"performance": "Performance Metrics",
1820+
"advancedConfiguration": "Advanced Configuration",
1821+
"supportedFormats": "Supported Formats",
1822+
"inputFormats": "Input Formats",
1823+
"outputFormats": "Output Formats"
1824+
},
1825+
"documentation": {
1826+
"title": "Documentation"
1827+
},
1828+
"changeLog": {
1829+
"title": "Version",
1830+
"latestVersion": "Latest Version",
1831+
"noReleases": "No version release information",
1832+
"initialize": "Click to initialize"
1833+
}
1834+
},
1835+
"create": {
1836+
"title": "Upload Operator",
1837+
"updateTitle": "Update Operator",
1838+
"steps": {
1839+
"uploadFile": "Upload File",
1840+
"parseFile": "Parse File",
1841+
"configure": "Configure Information",
1842+
"publish": "Publish Complete"
1843+
},
1844+
"upload": {
1845+
"title": "Upload Operator File",
1846+
"description": "Supports multiple operator file formats, system will automatically parse configuration information",
1847+
"supportedFormats": "Supported File Formats",
1848+
"formats": {
1849+
"zip": "Archive File",
1850+
"tar": "Archive File"
1851+
},
1852+
"uploadArea": {
1853+
"dragDrop": "Drag files here or click to select files",
1854+
"onlySingle": "Only single file upload is supported",
1855+
"uploading": "Uploading file..."
1856+
}
1857+
},
1858+
"parse": {
1859+
"title": "Parsing operator file",
1860+
"description": "System is automatically analyzing your operator file and extracting configuration information...",
1861+
"uploadedFiles": "Uploaded Files",
1862+
"progress": "Parsing Progress"
1863+
},
1864+
"configure": {
1865+
"title": "Configure Information",
1866+
"basicInfo": "Basic Information",
1867+
"labels": {
1868+
"id": "ID",
1869+
"name": "Name",
1870+
"version": "Version",
1871+
"description": "Description",
1872+
"inputs": "Input Types",
1873+
"outputs": "Output Types"
1874+
},
1875+
"changeLog": {
1876+
"title": "Change Log",
1877+
"addLine": "Add a change log line",
1878+
"deleteLine": "Delete this line"
1879+
},
1880+
"performance": "Performance Metrics"
1881+
},
1882+
"preview": {
1883+
"title": "Publish Successful!",
1884+
"description": "Your operator has been successfully published to the operator market",
1885+
"continueUpload": "Continue Upload",
1886+
"backToHome": "Back to Home"
1887+
},
1888+
"actions": {
1889+
"reupload": "Re-upload",
1890+
"publish": "Publish Operator",
1891+
"update": "Update Operator"
1892+
},
1893+
"messages": {
1894+
"parseError": "Issues found during parsing",
1895+
"publishFailed": "Operator publication failed",
1896+
"fileParseFailed": "File parsing failed"
1897+
}
1898+
},
1899+
"const": {
1900+
"modal": {
1901+
"multimodal": "Multimodal",
1902+
"text": "Text",
1903+
"image": "Image",
1904+
"video": "Video",
1905+
"audio": "Audio"
1906+
},
1907+
"usageCount": "Usage Count",
1908+
"type": "Type",
1909+
"size": "Size",
1910+
"language": "Language",
1911+
"function": "Function"
1912+
}
17461913
}
17471914
}

frontend/src/i18n/locales/zh/common.json

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,5 +1743,172 @@
17431743
"fileSize": "大小"
17441744
}
17451745
}
1746+
},
1747+
"operatorMarket": {
1748+
"title": "算子市场",
1749+
"home": {
1750+
"title": "算子市场",
1751+
"actions": {
1752+
"downloadExample": "下载示例算子",
1753+
"upload": "上传算子"
1754+
},
1755+
"filters": {
1756+
"title": "筛选器",
1757+
"hide": "隐藏筛选器",
1758+
"clear": "清除",
1759+
"selectAll": "全选",
1760+
"starStatus": "收藏状态",
1761+
"starred": "已收藏"
1762+
},
1763+
"search": {
1764+
"placeholder": "搜索算子名称、描述..."
1765+
},
1766+
"empty": {
1767+
"title": "没有找到匹配的算子",
1768+
"subtitle": "尝试调整筛选条件或搜索关键词"
1769+
},
1770+
"operations": {
1771+
"update": "更新",
1772+
"delete": "删除",
1773+
"confirm": {
1774+
"title": "确认删除",
1775+
"description": "此操作不可撤销,是否继续?",
1776+
"okText": "删除",
1777+
"cancelText": "取消"
1778+
},
1779+
"messages": {
1780+
"deleteSuccess": "算子删除成功",
1781+
"deleteFailed": "算子删除失败",
1782+
"downloadSuccess": "文件下载成功"
1783+
}
1784+
}
1785+
},
1786+
"detail": {
1787+
"breadcrumb": {
1788+
"market": "算子市场"
1789+
},
1790+
"tabs": {
1791+
"overview": "概览",
1792+
"requirement": "系统规格",
1793+
"documentation": "文档",
1794+
"changeLog": "更新日志"
1795+
},
1796+
"operations": {
1797+
"favorite": "收藏",
1798+
"update": "更新",
1799+
"delete": "删除",
1800+
"confirm": {
1801+
"title": "确认删除当前算子?",
1802+
"description": "删除后该算子将无法恢复,请谨慎操作。",
1803+
"okText": "删除",
1804+
"cancelText": "取消"
1805+
},
1806+
"messages": {
1807+
"deleteSuccess": "算子删除成功"
1808+
}
1809+
},
1810+
"overview": {
1811+
"title": "基本信息",
1812+
"version": "版本",
1813+
"category": "分类",
1814+
"description": "描述",
1815+
"inputs": "输入类型",
1816+
"outputs": "输出类型",
1817+
"createdAt": "创建时间",
1818+
"lastModified": "最后修改",
1819+
"performance": "性能指标",
1820+
"advancedConfiguration": "高级配置",
1821+
"supportedFormats": "支持格式",
1822+
"inputFormats": "输入格式",
1823+
"outputFormats": "输出格式"
1824+
},
1825+
"documentation": {
1826+
"title": "文档"
1827+
},
1828+
"changeLog": {
1829+
"title": "版本",
1830+
"latestVersion": "最新版本",
1831+
"noReleases": "暂无版本发布信息",
1832+
"initialize": "点击初始化"
1833+
}
1834+
},
1835+
"create": {
1836+
"title": "上传算子",
1837+
"updateTitle": "更新算子",
1838+
"steps": {
1839+
"uploadFile": "上传文件",
1840+
"parseFile": "解析文件",
1841+
"configure": "配置信息",
1842+
"publish": "发布完成"
1843+
},
1844+
"upload": {
1845+
"title": "上传算子文件",
1846+
"description": "支持多种格式的算子文件,系统将自动解析配置信息",
1847+
"supportedFormats": "支持的文件格式",
1848+
"formats": {
1849+
"zip": "压缩包文件",
1850+
"tar": "压缩包文件"
1851+
},
1852+
"uploadArea": {
1853+
"dragDrop": "拖拽文件到此处或点击选择文件",
1854+
"onlySingle": "仅支持单个文件上传",
1855+
"uploading": "正在上传文件..."
1856+
}
1857+
},
1858+
"parse": {
1859+
"title": "正在解析算子文件",
1860+
"description": "系统正在自动分析您的算子文件,提取配置信息...",
1861+
"uploadedFiles": "已上传文件",
1862+
"progress": "解析进度"
1863+
},
1864+
"configure": {
1865+
"title": "配置信息",
1866+
"basicInfo": "基本信息",
1867+
"labels": {
1868+
"id": "ID",
1869+
"name": "名称",
1870+
"version": "版本",
1871+
"description": "描述",
1872+
"inputs": "输入类型",
1873+
"outputs": "输出类型"
1874+
},
1875+
"changeLog": {
1876+
"title": "更新日志",
1877+
"addLine": "添加一行更新日志",
1878+
"deleteLine": "删除此行"
1879+
},
1880+
"performance": "性能指标"
1881+
},
1882+
"preview": {
1883+
"title": "发布成功!",
1884+
"description": "您的算子已成功发布到算子市场",
1885+
"continueUpload": "继续上传",
1886+
"backToHome": "返回主页"
1887+
},
1888+
"actions": {
1889+
"reupload": "重新上传",
1890+
"publish": "发布算子",
1891+
"update": "更新算子"
1892+
},
1893+
"messages": {
1894+
"parseError": "解析过程中发现问题",
1895+
"publishFailed": "算子发布失败",
1896+
"fileParseFailed": "文件解析失败"
1897+
}
1898+
},
1899+
"const": {
1900+
"modal": {
1901+
"multimodal": "多模态",
1902+
"text": "文本",
1903+
"image": "图像",
1904+
"video": "视频",
1905+
"audio": "音频"
1906+
},
1907+
"usageCount": "使用次数",
1908+
"type": "类型",
1909+
"size": "大小",
1910+
"language": "语言",
1911+
"function": "功能"
1912+
}
17461913
}
17471914
}

0 commit comments

Comments
 (0)