diff --git a/README.md b/README.md index 21d05eb..49800b3 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ pnpm run generate ### Self-hosting 1. Clone this repo -2. Build: `docker build --tag localsend-web --file Containerfile` +2. Build: `docker build --tag localsend-web --file Containerfile .` 3. Run: `docker run --rm --publish 8080:443 --volume caddy-data:/data localsend-web` ## Contributing diff --git a/i18n/locales/zh-cn.json b/i18n/locales/zh-cn.json new file mode 100644 index 0000000..d201a12 --- /dev/null +++ b/i18n/locales/zh-cn.json @@ -0,0 +1,26 @@ +{ + "index": { + "seo": { + "title": "LocalSend 网页版", + "description": "在你的浏览器和其他运行LocalSend的设备之间流转你的文件。" + }, + "connecting": "连接中...", + "webCryptoNotSupported": "你的浏览器暂不支持LocalSend:需要浏览器支持Web Crypto API。", + "empty": { + "title": "在另外一台设备上打开LocalSend", + "deviceHint": "在另外一个浏览器上打开本站或原生版本(1.18.0或以上版本)", + "lanHint": "只有在同一网络下的设备才会显示在这里" + }, + "you": "本机名称:", + "pin": { + "label": "PIN: ", + "none": "未设置" + }, + "enterAlias": "设置本机名称", + "enterPin": "设置 PIN", + "progress": { + "titleSending": "发送文件中...", + "titleReceiving": "文件接收中..." + } + } +} diff --git a/nuxt.config.ts b/nuxt.config.ts index 16e513b..bf4ba20 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -54,6 +54,12 @@ export default defineNuxtConfig({ file: "tr.json", name: "Türkçe", }, + { + code: "zh", + language: "zh-CN", + file: "zh-cn.json", + name: "简体中文", + }, ], }, nitro: {