mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
设置中文显示和NPM源在代码中修改
This commit is contained in:
parent
8463ce5ec0
commit
5362f9eed5
4 changed files with 34 additions and 2 deletions
|
@ -50,7 +50,8 @@ i18n
|
||||||
.init(
|
.init(
|
||||||
{
|
{
|
||||||
ns: ['translation','ep_admin_pads'],
|
ns: ['translation','ep_admin_pads'],
|
||||||
fallbackLng: 'en'
|
// 后台默认中文显示
|
||||||
|
fallbackLng: 'zh-hans'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -240,7 +240,7 @@
|
||||||
"rtl": false,
|
"rtl": false,
|
||||||
"alwaysShowChat": false,
|
"alwaysShowChat": false,
|
||||||
"chatAndUsers": false,
|
"chatAndUsers": false,
|
||||||
"lang": null
|
"lang": "zh-hans"
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -18,6 +18,7 @@ export class LinkInstaller {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.livePluginManager = new PluginManager({
|
this.livePluginManager = new PluginManager({
|
||||||
|
npmRegistryUrl: 'https://registry.npmmirror.com/',
|
||||||
pluginsPath: pluginInstallPath,
|
pluginsPath: pluginInstallPath,
|
||||||
hostRequire: undefined,
|
hostRequire: undefined,
|
||||||
cwd: path.join(settings.root, 'src')
|
cwd: path.join(settings.root, 'src')
|
||||||
|
|
30
编译说明.md
Normal file
30
编译说明.md
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
1. Download the latest Node.js runtime from [nodejs.org](https://nodejs.org/).
|
||||||
|
2. Install pnpm: `npm install -g pnpm` (Administrator privileges may be required).
|
||||||
|
3. Clone the repository: `git clone -b master`
|
||||||
|
4. Run `pnpm i`
|
||||||
|
5. Run `pnpm run build:etherpad`
|
||||||
|
6. Run `pnpm run prod`
|
||||||
|
7. Visit `http://localhost:9001` in your browser.
|
||||||
|
|
||||||
|
|
||||||
|
后台中文设置,找到文件
|
||||||
|
etherpad-lite\admin\src\localization>i18n.ts
|
||||||
|
// 修改
|
||||||
|
fallbackLng: 'zh-hans'
|
||||||
|
|
||||||
|
前台中文设置。搜索lang,改成
|
||||||
|
lang = 'zh-hans'
|
||||||
|
|
||||||
|
修改文件
|
||||||
|
etherpad-lite\src\static\js\pluginfw> LinkInstaller.ts
|
||||||
|
constructor() {
|
||||||
|
this.livePluginManager = new PluginManager({
|
||||||
|
//增加 插件拉不下来问题解决。
|
||||||
|
npmRegistryUrl: 'https://registry.npmmirror.com/',
|
||||||
|
pluginsPath: pluginInstallPath,
|
||||||
|
hostRequire: undefined,
|
||||||
|
cwd: path.join(settings.root, 'src')
|
||||||
|
});
|
||||||
|
this.dependenciesMap = new Map();
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue