
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://travis-ci.com/thedaviddelta/lingva-translate.svg?branch=main](https://travis-ci.com/thedaviddelta/lingva-translate) https://img.shields.io/github/deployments/thedaviddelta/lingva-translate/Production?label=vercel&logo=vercel&color=f5f5f5]([***] https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/simple/qgjdyd&style=flat&logo=cypress](https://dashboard.cypress.io/projects/qgjdyd/runs) https://img.shields.io/github/license/thedaviddelta/lingva-translate](https://github.com/thedaviddelta/lingva-translate/blob/main/LICENSE) https://raw.githubusercontent.com/humanetech-community/awesome-humane-tech/main/humane-tech-badge.svg?sanitize=true](https://github.com/humanetech-community/awesome-humane-tech) https://vercel.com?utm_source=lingva-team&utm_campaign=oss
Alternative front-end for Google Translate, serving as a Free and Open Source translator with over a hundred languages available
Inspired by projects like https://github.com/TeamNewPipe/NewPipe, https://github.com/***, https://github.com/iv-org/invidious or https://git.sr.ht/~cadence/bibliogram, Lingva scrapes through Google Translate and retrieves the translation without directly accessing any Google-related service, preventing them from tracking.
For this purpose, Lingva is built, among others, with the following Open Source resources:
As Lingva is a https://nextjs.org/ project you can deploy your own instance anywhere Next is supported.
The only requirement is to set an environment variable called NEXT_PUBLIC_SITE_DOMAIN with the domain you're deploying the instance under. This is used for the canonical URL and the meta tags.
Optionally, there are other environment variables available:
NEXT_PUBLIC_FORCE_DEFAULT_THEME: Force a certain theme over the system preference set by the user. The accepted values are light and dark.NEXT_PUBLIC_DEFAULT_SOURCE_LANG: Set an initial source language instead of the default auto.NEXT_PUBLIC_DEFAULT_TARGET_LANG: Set an initial target language instead of the default en.An https://hub.docker.com/r/thedaviddelta/lingva-translate is available to ease the deployment using Compose, Kubernetes or similar technologies. Remember to also include the environment variables (simplified to site_domain, force_default_theme, default_source_lang and default_target_lang) when running the container.
Docker Compose:
version: '3' services: lingva: container_name: lingva image: thedaviddelta/lingva-translate:latest restart: unless-stopped environment: - site_domain=lingva.ml - force_default_theme=light - default_source_lang=auto - default_target_lang=en ports: - 3000:3000
Docker Run
bashdocker run -p 3000:3000 -e site_domain=lingva.ml -e force_default_theme=light -e default_source_lang=auto -e default_target_lang=en thedaviddelta/lingva-translate:latest
Another easy way is to use the Next.js creators' own platform, https://vercel.com/, where you can deploy it for free with the following button.
https://vercel.com/button](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fthedaviddelta%2Flingva-translate%2Ftree%2Fmain&env=NEXT_PUBLIC_SITE_DOMAIN&envDescription=Your%20domain&utm_source=lingva-team&utm_campaign=oss)
These are the currently known Lingva instances. Feel free to make a Pull Request including yours (please remember to add [skip ci] to the last commit).
| Domain | Hosting | SSL Provider |
|---|---|---|
| lingva.ml (Official) | https://vercel.com/ | Let's Encrypt |
| translate.igna.ooo | https://vercel.com/ | Let's Encrypt |
| translate.plausibility.cloud | Hetzner | Let's Encrypt |
| lingva.lunar.icu | Lansol | Cloudflare |
| lingva.opnxng.com | Linode | Let's Encrypt |
| translate.projectsegfau.lt | Self-hosted | Let's Encrypt |
| translate.dr460nf1r3.org | Netcup | Cloudflare |
| lingva.garudalinux.org | Hetzner | Cloudflare |
| translate.jae.fi | Self-hosted | Let's Encrypt |
Nearly all the Lingva instances should supply a pair of public developer APIs: a RESTful one and a GraphQL one.
Note: both APIs return the translation audio as a Uint8Array (served as number[] in JSON and [Int] in GraphQL) with the contents of the audio buffer.
/api/v1/:source/:target/:querytypescript{ translation: string info?: TranslationInfo }
/api/v1/audio/:lang/:querytypescript{ audio: number[] }
/api/v1/languages/?:(source|target)typescript{ languages: [ { code: string, name: string } ] }
In addition, every endpoint can return an error message with the following structure instead.
typescript{ error: string }
/api/graphqlgraphqlquery { translation(source: String target: String query: String!) { source: { lang: { code: String! name: String! } text: String! audio: [Int]! detected: { code: String name: String } typo: String pronunciation: String definitions: { type: String list: { definition: String example: String field: String synonyms: [String] } } examples: [String] similar: [String] } target: { lang: { code: String! name: String! } text: String! audio: [Int]! pronunciation: String extraTranslations: { type: String list: { word: String article: String frequency: Int meanings: [String] } } } } audio(lang: String! query: String!) { lang: { code: String! name: String! } text: String! audio: [Int]! } languages(type: SOURCE|TARGET) { code: String! name: String! } }
Thanks goes to these wonderful people (emoji key):
David ️️️️♿️ https://github.com/TheDavidDelta/lingva-translate/commits?author=TheDavidDelta https://github.com/TheDavidDelta/lingva-translate/commits?author=TheDavidDelta 🎨 https://github.com/TheDavidDelta/lingva-translate/commits?author=TheDavidDelta | https://github.com/mhmdanas https://github.com/TheDavidDelta/lingva-translate/commits?author=mhmdanas | TheFrenchGhosty https://github.com/TheDavidDelta/lingva-translate/commits?author=TheFrenchGhosty |
This project follows the https://github.com/all-contributors/all-contributors specification. Contributions of any kind welcome!
https://www.gnu.org/graphics/agplv3-with-text-162x68.png](https://www.gnu.org/licenses/agpl-3.0.html)
Copyright © 2021 https://github.com/thedaviddelta & contributors.
This project is https://github.com/thedaviddelta/lingva-translate/blob/main/LICENSE licensed.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务