-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathi18n.js
More file actions
168 lines (147 loc) · 9.68 KB
/
i18n.js
File metadata and controls
168 lines (147 loc) · 9.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
const i18n = {
en: {
// 页面标题和描述
title: 'Markdown and HTML Converter',
subtitle: 'Specially designed for Wordpress publishing, HTML page generation; Perfect for converting outputs from ChatGPT, Claude, Perplexity and other AI tools to HTML format.',
// 转换模式
md2html: 'Markdown to HTML',
html2md: 'HTML to Markdown',
// 输入输出区域
inputTitle: 'Markdown Input',
outputTitle: 'HTML Output',
inputPlaceholder: 'Enter your content here...',
// 按钮和操作
convert: 'Convert',
copy: 'Copy Output',
download: 'Download HTML',
clearInput: 'Clear Input',
clearOutput: 'Clear Output',
// 预览控制
preview: 'Preview HTML',
rawHtml: 'Show HTML',
togglePreview: 'Hide Preview',
showPreview: 'Show Preview',
// 引文控制
removeCitations: 'Remove Citations (From <a href="https://perplexity.ai/pro?referral_code=6AU5QB68" class="perplexity-link" target="_blank" rel="noopener">Perplexity.ai</a>)',
// 提示消息
copySuccess: 'Content copied to clipboard!',
copyError: 'Copy failed, please copy manually',
// 文档标题
docTitle: 'MD2HTML - Markdown Converter',
// Footer 部分
footerAboutTitle: "About MD2HTML",
footerAboutText: "MD2HTML is a free online tool that helps users easily convert between Markdown and HTML formats. The product is open source, feel free to send any feedback to <a href=\"mailto:hi@md2html.com\">hi@md2html.com</a>",
footerAgreementTitle: "User Agreement",
footerPrivacyPolicy: "Privacy Policy",
footerTerms: "Terms of Use",
footerContactTitle: "Contact Us",
footerCopyright: "© 2024 MD2HTML. All rights reserved.",
footerFriendlyLinks: "Friendly Links",
footerWatermark: "Watermark Adder",
footerResearchTitle: "Research Title Generator",
// 隐私政策翻译
privacyTitle: "Privacy Policy - MD2HTML",
privacyIntroTitle: "Privacy Protection Commitment",
privacyIntroText: "MD2HTML highly values user privacy protection. Our tool is a pure frontend application, all data processing is done locally in your browser and no content is transmitted to servers.",
dataCollectionTitle: "Data Collection",
dataCollectionText: "We do not collect any user data. All content you input in the tool is processed only in your browser, and we cannot access this content.",
localStorageTitle: "Local Storage",
localStorageText: "We only use browser local storage (localStorage) to save your theme preferences (dark/light mode) and language selection. This data is stored entirely on your device and we cannot access it.",
noAccountTitle: "No Account Required",
noAccountText: "Our tool can be used without registration or login, so we do not collect any personal identification information.",
securityTitle: "Security",
securityText: "Since all operations are performed locally, your content always remains private. We recommend using trusted devices and browsers when handling sensitive information.",
// 使用条款翻译
termsTitle: "Terms of Use - MD2HTML",
termsIntroTitle: "Service Description",
termsIntroText: "MD2HTML provides online Markdown and HTML format conversion services. This tool is completely free and implemented with pure frontend technology, all conversions are performed locally in the user's browser.",
usageTitle: "Usage Guidelines",
usageText: "You can freely use this tool to convert any legal content. We do not review or store user input, but please ensure your use complies with relevant laws and regulations.",
openSourceTitle: "Open Source License",
openSourceText: "MD2HTML is an open source project, you can view the source code on GitHub. Under the open source license, you are free to use, modify and distribute this tool.",
disclaimerTitle: "Disclaimer",
disclaimerText: "This tool is provided 'as is', we make no guarantees about the accuracy of conversion results. Please check the converted content before use. We are not responsible for any direct or indirect losses caused by using this tool.",
updatesTitle: "Terms Updates",
updatesText: "We reserve the right to update these terms at any time. Major changes will be notified to users through website announcements. Continued use of this tool indicates your acceptance of the new terms.",
langSwitchText: '中文',
convertSuccess: 'Conversion successful!',
copySuccess: 'Copied to clipboard!',
copyError: 'Copy failed, please copy manually',
clearSuccess: 'Content cleared',
},
zh: {
// 页面标题和描述
title: 'Markdown 和 HTML 双向转换',
subtitle: '特别用于 Wordpress 内容发表、HTML 网页生成等场景;适合将 ChatGPT、Claude、Perplexity 等 AI 工具的输出转换为 HTML 格式。',
// 转换模式
md2html: 'Markdown 转 HTML',
html2md: 'HTML 转 Markdown',
// 输入输出区域
inputTitle: 'Markdown 输入',
outputTitle: 'HTML 输出',
inputPlaceholder: '在这里输入内容...',
// 按钮和操作
convert: '转换',
copy: '复制输出',
download: '下载 HTML',
clearInput: '清空输入',
clearOutput: '清空输出',
// 预览控制
preview: '预览 HTML',
rawHtml: '显示 HTML',
togglePreview: '隐藏预览',
showPreview: '显示预览',
// 引文控制
removeCitations: '去除引文(来自 <a href="https://perplexity.ai/pro?referral_code=6AU5QB68" class="perplexity-link" target="_blank" rel="noopener">Perplexity.ai</a>)',
// 提示消息
copySuccess: '内容已复制到剪贴板!',
copyError: '复制失败,请手动复制',
// 文档标题
docTitle: 'MD2HTML - Markdown 转换工具',
// Footer 部分
footerAboutTitle: "关于 MD2HTML",
footerAboutText: "MD2HTML 是一个免费的在线工具,帮助用户在 Markdown 和 HTML 格式之间轻松转换。产品开源,欢迎反馈任何需求到 <a href=\"mailto:hi@md2html.com\">hi@md2html.com</a>",
footerAgreementTitle: "用户协议",
footerPrivacyPolicy: "隐私政策",
footerTerms: "使用条款",
footerContactTitle: "联系我们",
footerCopyright: "© 2024 MD2HTML. 保留所有权利。",
footerFriendlyLinks: "友情链接",
footerWatermark: "水印添加器",
footerResearchTitle: "论文标题生成器",
// 隐私政策翻译
privacyTitle: "隐私政策 - MD2HTML",
privacyIntroTitle: "隐私保护承诺",
privacyIntroText: "MD2HTML 高度重视用户隐私保护。我们的工具是一个纯前端应用程序,所有数据处理都在您的浏览器本地完成,不会将任何内容传输到服务器。",
dataCollectionTitle: "数据收集",
dataCollectionText: "我们不收集任何用户数据。您在工具中输入的所有内容都只在您的浏览器中进行处理,我们无法访问这些内容。",
localStorageTitle: "本地存储",
localStorageText: "我们仅使用浏览器的本地存储(localStorage)来保存您的主题偏好设置(深色/浅色模式)和语言选择。这些数据完全存储在您的设备上,我们无法访问。",
noAccountTitle: "无需账户",
noAccountText: "我们的工具无需注册或登录即可使用,因此我们不会收集任何个人身份信息。",
securityTitle: "安全性",
securityText: "由于所有操作都在本地完成,您的内容始终保持私密。我们建议您在处理敏感信息时,确保使用可信的设备和浏览器。",
// 使用条款翻译
termsTitle: "使用条款 - MD2HTML",
termsIntroTitle: "服务说明",
termsIntroText: "MD2HTML 提供在线 Markdown 和 HTML 格式转换服务。本工具完全免费,采用纯前端技术实现,所有转换都在用户浏览器本地完成。",
usageTitle: "使用规范",
usageText: "您可以自由使用本工具进行任何合法内容的格式转换。我们不对用户输入的内容进行审查或存储,但请确保您的使用符合相关法律法规。",
openSourceTitle: "开源协议",
openSourceText: "MD2HTML 是一个开源项目,您可以在 GitHub 上查看源代码。在遵守开源协议的前提下,您可以自由使用、修改和分发本工具",
disclaimerTitle: "免责声明",
disclaimerText: "本工具按现状提供,我们不对转换结果的准确性做出保证。请在使用转换后的内容前自行检查。我们不对使用本工具造成的任何直接或间接损失负责",
updatesTitle: "条款更新",
updatesText: "我们保留随时更新这些条款的权利。重大变更会通过网站公告通知用户。继续使用本工具即表示您同意接受新的条款内容",
footerFriendlyLinks: "友情链接",
footerWatermark: "水印添加器",
footerResearchTitle: "论文标题生成器",
langSwitchText: 'English',
convertSuccess: '转换成功!',
copySuccess: '已复制到剪贴板!',
copyError: '复制失败,请手动复制',
clearSuccess: '已清空内容',
}
};
// 导出语言包和工具函数
export default i18n;