From d67738aa23b0c48c695de8a4e0c307d098e34979 Mon Sep 17 00:00:00 2001 From: LxnChan Date: Sun, 17 Aug 2025 17:37:27 +0800 Subject: [PATCH 1/3] repair build error --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 5a9aeacce55e7da2107f4ba8cd2d9acd4e3299e4 Mon Sep 17 00:00:00 2001 From: LxnChan Date: Sun, 17 Aug 2025 17:42:20 +0800 Subject: [PATCH 2/3] add Simplified Chinese Translate --- i18n/locales/zh-cn.json | 26 ++++++++++++++++++++++++++ nuxt.config.ts | 6 ++++++ 2 files changed, 32 insertions(+) create mode 100644 i18n/locales/zh-cn.json diff --git a/i18n/locales/zh-cn.json b/i18n/locales/zh-cn.json new file mode 100644 index 0000000..10e7327 --- /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: { From 76b191ece82282e60e2d73d4fd1e78549cd639e8 Mon Sep 17 00:00:00 2001 From: LxnChan Date: Thu, 21 Aug 2025 11:02:04 +0800 Subject: [PATCH 3/3] update zh-cn translate --- i18n/locales/zh-cn.json | 52 ++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/i18n/locales/zh-cn.json b/i18n/locales/zh-cn.json index 10e7327..d201a12 100644 --- a/i18n/locales/zh-cn.json +++ b/i18n/locales/zh-cn.json @@ -1,26 +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": "文件接收中..." - } - } -} +{ + "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": "文件接收中..." + } + } +}