From 341f825fd97d19d112d00507d71c5c49c231ebde Mon Sep 17 00:00:00 2001 From: fly1d <309400591+fly1d@users.noreply.github.com> Date: Wed, 12 Aug 2026 09:50:18 +0800 Subject: [PATCH] docs: adopt MIT license --- LICENSE | 21 +++++++++++++++++++++ README.md | 6 +++++- package-lock.json | 2 +- package.json | 2 +- src-tauri/Cargo.toml | 1 + 5 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..54e1daf --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 fly1d + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index b71a685..388859a 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![CI](https://github.com/fly1d/wordwise/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fly1d/wordwise/actions/workflows/ci.yml) [![Desktop](https://github.com/fly1d/wordwise/actions/workflows/desktop.yml/badge.svg?branch=main)](https://github.com/fly1d/wordwise/actions/workflows/desktop.yml) [![CodeQL](https://github.com/fly1d/wordwise/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/fly1d/wordwise/actions/workflows/codeql.yml) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) 本地优先的英中逐词翻译工具,提供 macOS 桌面客户端和 Web 界面。文本先被确定性拆成词元,再交给翻译引擎;模型返回会被校验,不能随意漏词或合并词语。 @@ -84,4 +85,7 @@ npm run desktop:check - 全局划词 beta 目前只支持 macOS。 - 文档功能提取文字后翻译,尚未保持原文档版式导出。 -- 仓库公开可见,但暂未授予开源许可证;除非另行说明,项目保留全部权利。 + +## 许可证 + +本项目采用 [MIT License](LICENSE)。 diff --git a/package-lock.json b/package-lock.json index a72c4fb..460cfec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,7 @@ "": { "name": "word-by-word-translator", "version": "0.1.0-beta.1", - "license": "UNLICENSED", + "license": "MIT", "dependencies": { "@tauri-apps/api": "^2.11.1", "@tauri-apps/plugin-global-shortcut": "^2.3.1", diff --git a/package.json b/package.json index 217d920..97b312d 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "version": "0.1.0-beta.1", "description": "Local-first word-by-word English to Chinese translator for macOS and the web", - "license": "UNLICENSED", + "license": "MIT", "type": "module", "engines": { "node": ">=24" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 5fa8d19..a80da1f 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -3,6 +3,7 @@ name = "wordwise" version = "0.1.0-beta.1" description = "Local-first word-by-word translation desktop client" authors = ["Wordwise contributors"] +license = "MIT" edition = "2021" [lib]