社区设置指南 · 由 lovable-i18n skill 提供支持

在几分钟内让你的 Lovable 应用 支持多语言

Add the lovable-i18n skill and the globalize MCP, all inside Lovable. Translations land on every push. No CLIs, no leaving the editor.

在内部工作LovableGitHubglobalize.now
Watch

See the whole setup in 2 minutes

From English-only to 50+ languages, start to finish, inside Lovable.

为以下机构提供本地化支持

Pretty PromptNextKSRajaride

这个指南是什么?

一个完全在 Lovable 和 GitHub 内部运行的三步工作流

添加 skill

在你的 Lovable 工作区安装一次 lovable-i18n。每个项目都能使用它。

Lovable 连接 Lingui

检测你的技术栈(Vite SPA 或 TanStack Start),添加 Lingui v6,用 <Trans> 宏包装你的字符串,并为每个语言环境创建一个 PO 目录。

在每次推送时保持翻译

GitHub Action 将新字符串提取到目录中。Globalize.now 打开翻译 PR。合并并发布。

为你的技术栈而生

Next.jsReactViteTanStack StartLovableCursorClaude CodeCodexVS CodeGitHubGitLab
开始之前

前置条件

三个快速检查。总共两分钟。

  • 连接到 GitHub 的 Lovable 项目
    打开聊天中的 + 菜单 → GitHub → Connect project。
  • 一个 globalize.now 账户
    免费注册,获得€5额度,无需信用卡。
  • Lovable 中的工作区所有者或管理员
    需要为整个工作区添加一次 skill。
设置

Five steps from English-only to 50+ languages

  1. 1

    将你的 Lovable 项目连接到 GitHub

    在 Lovable 编辑器中,打开聊天输入框的 + 菜单 → GitHub → Connect project。授权 Lovable GitHub 应用,选择组织,然后创建仓库。

    如果你的项目已连接,请跳过。你可以在 + 菜单 → GitHub 下验证。
  2. 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 skillDownload
    https://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 → SkillsAdd → Create new skill and paste it in.

    New to Lovable skills? Read the Lovable Skills docs.

  3. 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 URL
    https://api.globalize.now/mcp
  4. 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 go to accept all defaults.

    It then installs @lingui/core, @lingui/react and 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. 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 中编辑
推送到 GitHub
Action 提取字符串
globalize.now
翻译 PR
合并
多语言应用

你在 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.
CD
Charlie Day
联合创始人 · Pretty Prompt
A big relief to developers, they can rely on AI to do this stuff for them. Because it's painful stuff.
TF
Tomas Franc
创始人 · NextKS · 前 Lokalise 解决方案架构师
我之前尝试用 Claude 和 Lovable 做这件事,但最后破坏了代码。用 Globalize 超级简单。
VU
Verified user
休闲、旅游和旅游业 · 小企业
定价

€20/月。加上你实际使用的翻译。

一个计划。无分级、无惊喜、无企业销售电话。随着增长而充值。

早期访问
€20/月

每个工作区 · 超过 400 万字符 · 约 60 万字

注册免费获得€5翻译额度,无需信用卡。

需要更多?按相同的按字符费率充值。无需切换计划。

免费开始
  • 每月超过 400 万字符 / 约 60 万字
  • 无限语言,包括从右到左语言
  • CLI、API 和 GitHub 同步
  • 上下文感知的 AI 词汇表
  • 早期访问期间的优先支持
常见问题

Lovable 特定问题

不需要。设置完全通过 Lovable skill 和 Globalize.now 网页仪表板进行。无需 CLI,无需本地环境。

Skills are managed by workspace owners or admins. Ask your workspace owner to add lovable-i18n once. Every project in the workspace inherits it.

不会。默认语言保持为英语,语言文件位于你的仓库中。翻译填充时你的预览继续工作。

每次从 Lovable 推送到 GitHub 时,Globalize.now 都会打开一个翻译 PR。合并它,新字符串就会以翻译后的形式发布。

Lingui v6。每个语言环境一个 PO 目录,位于 src/locales//messages.po,由 @lingui/vite-plugin 在构建时编译。适用于两个 Lovable 技术栈:Vite SPA 和 TanStack Start(SSR)。

skill 会停止并在执行任何操作前询问。它不会无声地迁移。要么保留你现有的库(在这种情况下这个 skill 不适用),要么先删除它,然后重新运行 skill,这样它可以干净地设置 Lingui。

€20/month per workspace, plus per-translated-character usage. New accounts get €5 of free credit on signup, no card required.

Lovable's Import from GitHub for skills is currently broken (a Lovable bug). Use the zip instead: download lovable-i18n.zip from https://globalize.now/lovable-i18n.zip and upload it via Settings → Skills → Add → Upload a ZIP. Or paste the SKILL.md manually.

准备好用 50+ 种语言发布你的 Lovable 应用了吗?

添加一次 skill。翻译永远保持同步。