mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
♻️ refactor: Convert glossary from JSON to Markdown table format (#11237)
* ♻️ refactor: Convert glossary from JSON to Markdown table format - Migrate glossary.json to docs/glossary.md with table format - Update .i18nrc.js to read glossary from Markdown file - Add more terminology entries (agentGroup, thread) - Improve readability with structured table layout * update i18n * update glossary * 🐛 fix: fix file type
This commit is contained in:
+4
-2
@@ -1,4 +1,6 @@
|
||||
const { defineConfig } = require('@lobehub/i18n-cli');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
module.exports = defineConfig({
|
||||
entry: 'locales/en-US',
|
||||
@@ -31,8 +33,8 @@ module.exports = defineConfig({
|
||||
},
|
||||
markdown: {
|
||||
reference:
|
||||
'你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法。以下是一些词汇的固定翻译:\n' +
|
||||
JSON.stringify(require('./glossary.json'), null, 2),
|
||||
'你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法。\n' +
|
||||
fs.readFileSync(path.join(__dirname, 'docs/glossary.md'), 'utf-8'),
|
||||
entry: ['./README.zh-CN.md', './contributing/**/*.zh-CN.md', './docs/**/*.zh-CN.mdx'],
|
||||
entryLocale: 'zh-CN',
|
||||
outputLocales: ['en-US'],
|
||||
|
||||
Reference in New Issue
Block a user