在几分钟内让你的 Lovable 应用 支持多语言
Add the lovable-i18n skill and the globalize MCP, all inside Lovable. Translations land on every push. No CLIs, no leaving the editor.
See the whole setup in 2 minutes
From English-only to 50+ languages, start to finish, inside Lovable.
为以下机构提供本地化支持
这个指南是什么?
一个完全在 Lovable 和 GitHub 内部运行的三步工作流
添加 skill
在你的 Lovable 工作区安装一次 lovable-i18n。每个项目都能使用它。
Lovable 连接 Lingui
检测你的技术栈(Vite SPA 或 TanStack Start),添加 Lingui v6,用 <Trans> 宏包装你的字符串,并为每个语言环境创建一个 PO 目录。
在每次推送时保持翻译
GitHub Action 将新字符串提取到目录中。Globalize.now 打开翻译 PR。合并并发布。
为你的技术栈而生
前置条件
三个快速检查。总共两分钟。
- 连接到 GitHub 的 Lovable 项目打开聊天中的 + 菜单 → GitHub → Connect project。
- 一个 globalize.now 账户免费注册,获得€5额度,无需信用卡。
- Lovable 中的工作区所有者或管理员需要为整个工作区添加一次 skill。
Five steps from English-only to 50+ languages
- 1
将你的 Lovable 项目连接到 GitHub
在 Lovable 编辑器中,打开聊天输入框的 + 菜单 → GitHub → Connect project。授权 Lovable GitHub 应用,选择组织,然后创建仓库。
如果你的项目已连接,请跳过。你可以在 + 菜单 → GitHub 下验证。 - 2
Add the lovable-i18n skill by uploading the zip
该 skill 教会 Lovable 如何以 Globalize.now 期望的方式对你的项目进行国际化。
Open Skills in your Lovable workspace settings, click Add, and upload the lovable-i18n.zip.
Download the skillDownloadhttps://globalize.now/lovable-i18n.zip你每个工作区只需做一次。该工作区中的每个项目现在都可以使用该 skill。Lovable's Import from GitHub for skills is temporarily broken, so upload the zip for now.
Can't upload a zip? Paste the skill manually.
Open the lovable-i18n SKILL.md, copy its contents, then in Lovable go to Settings → Skills → Add → Create new skill and paste it in.
New to Lovable skills? Read the Lovable Skills docs.
- 3
Add the globalize MCP
Connect Globalize.now as a custom MCP inside Lovable.
In Lovable, open Connectors → Custom MCP and add the globalize MCP. Authenticate with an API key you create in the MCP tab of your globalize.now dashboard.
MCP URLhttps://api.globalize.now/mcp
- 4
Ask Lovable to set it up
打开工作区中的任何项目,并将以下内容粘贴到 Lovable 聊天中:
Lovable 提示词Use the lovable-i18n skill and the globalize MCP to set up i18n and translate my app.Lovable will detect your stack (Vite SPA or TanStack Start), then ask one short question: source language, target languages, whether to put the locale in the URL, and whether to add the GitHub Action. Reply
goto accept all defaults.It then installs
@lingui/core,@lingui/reactand the Vite plugin, wires the provider, scaffolds one PO catalog per locale, wraps every hardcoded UI string in Lingui macros, and drops a language switcher in. The MCP connects your repo and translates on every push. - 5
Review, merge, and keep building
Lovable 自动同步到 GitHub。在 Lovable 代码视图或直接在 GitHub 上审查差异,然后合并到你的默认分支。
That's the loop. Every push triggers Globalize.now → translation PR → merge → translated app ships. Nothing else to do.
一次推送如何变成 50+ 种语言
一次性设置后自动运行。无需其他设置。
你在 Lovable 中编辑。Lovable 推送到 GitHub。Globalize.now 打开翻译 PR。你合并。你的预览变成多语言。
开发者实际工作的地方
大多数本地化工具都在你的工作流之外。我们在工作流内部。
在你的 AI 代理内部
Installs as a Lovable skill. The agent does the work. We just give it the playbook. No separate dashboard. You connect the skill and the MCP once, then prompt.
在你的 Git 工作流内部
每次推送到 main 分支都会触发一个包含已准备好审查的翻译的 PR。无需审查队列、无需导出按钮、无需雇佣专门的角色。
在你现有的代码库内部
首次运行时进行框架检测。如果你已经有 Lingui、next-intl 或 react-i18next,skill 会停止并在更改任何内容前询问。
50+ 种语言,包括从右到左语言
在 Globalize.now 仪表板中选择任何组合。
早期用户在说什么
真实的 React 应用。真实的国际化债务。早期建设者告诉我们的。
I just want translation to be automatic so language no longer becomes a barrier. This is exactly what I was looking for, works in the background on every commit, with great results.
A big relief to developers, they can rely on AI to do this stuff for them. Because it's painful stuff.
我之前尝试用 Claude 和 Lovable 做这件事,但最后破坏了代码。用 Globalize 超级简单。
€20/月。加上你实际使用的翻译。
一个计划。无分级、无惊喜、无企业销售电话。随着增长而充值。
- 每月超过 400 万字符 / 约 60 万字
- 无限语言,包括从右到左语言
- CLI、API 和 GitHub 同步
- 上下文感知的 AI 词汇表
- 早期访问期间的优先支持