描述
Lang Forge 是一款现代化的多语言插件,支持多语言网址路由(4 种网址格式)、文章与字符串的手动翻译、语言切换器、hreflang SEO、RTL 布局、术语表、WooCommerce、无限语言,以及从 WPML / Polylang / TranslatePress 一键迁移。它内置 REST API 和 WP-CLI 命令,并可作为 WPML 的无缝兼容层直接替换使用。AI 翻译功能可通过 Lang Forge Pro 附加组件获得。
正在从 WPML、Polylang 或 TranslatePress 迁移?
Lang Forge 会导入您现有的配置,而不是让您从零开始。迁移工具会读取当前插件的数据并重新生成:已翻译的文章及其语言关联、字符串翻译、分类法翻译,以及您的语言网址结构。
迁移过程不会破坏原有数据。在您确认迁移结果之前,当前使用的插件会保持安装状态且不受影响,您可以对比两者效果,如有问题也可以随时回退。
如果您正从 WPML 迁移过来,现有的主题和插件代码也无需改动即可继续使用。Lang Forge 提供 WPML 兼容层,实现了第三方代码所依赖的函数——icl_object_id()、icl_get_languages()、icl_translate() 等——因此基于 WPML 构建的集成无需修改即可正常运行。
Free
- 无限语言
- 多语言网址路由——4 种格式(目录
/fr/、查询参数?lang=fr、子域名、域名映射) - 手动关联文章 / 页面 / 自定义文章类型的翻译
- 手动字符串翻译(通过 gettext 自动注册)
- 语言切换器(小工具 / 简码 / 工具栏)
- 带 x-default 的 hreflang 标签,以及 hreflang 网站地图
- 术语表
- WooCommerce 产品和商店字符串翻译
- WPML 兼容层(
icl_object_id()、icl_get_languages()等) - REST API + WP-CLI 命令
- 从 WPML / Polylang / TranslatePress 一键迁移
- RTL 支持(ar/he/fa/ur/ku)
Pro
- AI 翻译(含翻译记忆库)
- 可视化编辑器(所见即所得双栏翻译)
- 前端翻译
- Elementor + ACF 集成
- 内容对比 + 翻译质量检查
- 分析仪表盘
- 导入/导出 PO + XLIFF
- 批量 AI 翻译、译者角色、媒体/评论翻译、实时预览
隶属于 Forge Suite 套件——该套件还包含 SEO Forge、Form Forge、Field Forge。
第三方服务
Lang Forge 会连接以下第三方服务。基础翻译、语言切换器、字符串翻译和 hreflang 完全离线运行,不会发起任何外部请求——只有在使用 AI 功能时才会发送数据。
- Avakode API (https://avakode.com) — powers AI translation and AI quality checks, and validates your license. When you run an AI translation or QA check, the source post content, the target language, your site URL, and your license key are sent. The Avakode API routes AI requests to OpenAI and/or DeepL on your behalf. Terms: https://avakode.com/terms — Privacy: https://avakode.com/privacy
- OpenAI (used by the Avakode API to perform AI translation) — Terms: https://openai.com/policies/terms-of-use — Privacy: https://openai.com/policies/privacy-policy
- DeepL (used by the Avakode API to perform AI translation) — Terms: https://www.deepl.com/en/pro-license — Privacy: https://www.deepl.com/en/privacy
- 匿名使用分析(需主动开启,默认关闭)——只有当您在 Lang Forge 设置中主动开启该选项后,插件才会向 Avakode API(https://avakode.com/telemetry)发送匿名的产品使用遥测数据:随机生成的安装 ID(UUID,不关联您的网站网址或任何账户)、按区间分组的 WordPress 和 PHP 版本范围、插件版本,以及汇总的功能使用事件计数。数据仅在您主动开启后才会发送,并且可以随时关闭。它绝不会发送您的网站网址、电子邮箱地址、文章或表单内容,或许可证密钥。隐私政策:https://avakode.com/privacy
屏幕截图






安装
- 将
langforge上传到/wp-content/plugins/目录,或通过“插件 安装插件”进行安装。 - 启用插件。
- 前往 Lang Forge 设置,启用您需要的目标语言。
- (可选)在 Lang Forge 连接 页面中连接 Avakode 账户,以启用 Pro 功能。
常见问题
-
如何让我的 WordPress 网站支持多语言?
-
安装 Lang Forge,进入 Lang Forge 设置,添加所需的语言,然后选择语言网址的呈现方式——例如 /fr/ 这样的子目录、查询参数、子域名,或为每种语言使用独立域名。设置完成后,每篇文章、页面和自定义文章类型都会出现“语言”面板,您可以在其中关联或创建对应的翻译。
-
如何翻译 WooCommerce 产品和分类?
-
Lang Forge 可以翻译 WooCommerce 产品内容、产品分类和标签,以及购物车、结账文案等商店字符串。在编辑器中打开任意产品,像翻译文章一样使用“语言”面板即可。
-
Lang Forge 会在
wp_head中为每个已翻译网址自动输出 hreflang 标签,包括 x-default 条目,并生成 hreflang 网站地图。无需手动添加标记,也无需另外配置 SEO 插件。 -
可以为每种语言使用独立域名吗?
-
可以。域名映射是支持的四种网址格式之一,另外三种是子目录、子域名和查询参数。您可以将 example.fr 和 example.de 都指向同一个 WordPress 安装,Lang Forge 会为每个域名提供对应的语言内容。
-
如何从 Polylang 迁移而不丢失已有翻译?
-
运行内置的迁移工具即可。它会导入您已翻译的文章及其关联关系、字符串翻译和语言网址结构。在您确认迁移之前,Polylang 会保持安装状态且不受影响,即使中途改变主意也不会丢失任何数据。
-
可以从 WPML 迁移吗?
-
可以,并且您现有的代码无需改动即可继续运行。除了导入内容之外,Lang Forge 还提供 WPML 兼容层,实现了
icl_object_id()、icl_get_languages()等相关函数,让基于 WPML 开发的主题和插件无需修改即可正常工作。 -
从 TranslatePress 切换过来后,我的网址会改变吗?
-
只有在您需要时才会改变。迁移工具会读取您当前的语言网址格式并原样还原,确保现有链接和搜索排名不受影响。之后如果需要,您也可以随时在“设置”中更改格式。
-
它支持阿拉伯语、希伯来语等从右到左书写的语言吗?
-
支持。Lang Forge 内置对阿拉伯语、希伯来语、波斯语、乌尔都语和库尔德语的 RTL(从右到左)支持,会自动切换文字方向并调整后台和切换器的布局。
-
切换器提供三种使用方式:作为小工具、作为可放置在任意位置的简码,以及显示在工具栏中。它可以显示国旗图标、语言本地名称,或两者同时显示。
-
如何翻译来自主题或其他插件的字符串?
-
任何通过 WordPress 翻译函数处理的字符串都会通过 gettext 自动注册,并出现在“字符串翻译”页面中,您可以按语言逐一翻译,无需编辑 .po 文件。
-
可以通过命令行翻译我的网站吗?
-
可以。Lang Forge 内置 WP-CLI 命令,可用于列出语言、关联或取消关联翻译、导入导出翻译数据以及执行批量操作——适合预发布部署和脚本化工作流程。
-
可以将翻译导出为 XLIFF 或 PO 格式吗?
-
PO 和 XLIFF 文件的导入导出功能包含在 Lang Forge Pro 中,方便将内容发送给外部译者或翻译公司。
-
免费版最多可以使用多少种语言?
-
没有限制。免费版对可用语言数量没有套餐上限。
-
Lang Forge 能与我的主题兼容吗?
-
支持。Lang Forge 使用标准的 WordPress 钩子——
the_content、get_the_title,以及通过wp_head输出的 hreflang——因此无需针对特定主题进行额外集成。 -
它支持 Elementor 和 ACF 吗?
-
Elementor 和 ACF 字段翻译功能包含在 Lang Forge Pro 中。免费版可处理标准文章内容、自定义文章类型和分类法。
-
它会拖慢我的网站速度吗?
-
基础翻译、语言切换器、字符串翻译和 hreflang 均在本地运行,不会发出任何外部请求。除非您使用 AI 功能(属于 Pro 附加组件),否则不会向外发送任何数据。
-
免费版包含 AI 翻译功能吗?
-
不包含。免费版支持手动翻译文章、字符串、分类法和 WooCommerce 内容。AI 翻译、翻译记忆库和批量 AI 翻译是 Lang Forge Pro 附加组件的功能。
-
AI 翻译的费用是多少?
-
AI 翻译需要消耗 Forge Credits(与订阅额度分开计算)。1 个 Credit 约等于一个短段落。Credit 永不过期。
-
我的内容会被发送给 OpenAI 吗?
-
仅在您使用 AI 功能时才会发送数据,且仅发送正在翻译的文本。数据会发送到 Avakode API,再由其转发给 OpenAI 或 DeepL。不会发送任何个人数据、管理信息或网站网址。完整说明请参阅“第三方服务”部分。
-
什么是术语表?什么时候需要用到它?
-
术语表可以将特定词汇锁定为固定译法——品牌名称、产品名称、行业术语等——从而确保这些词在每个翻译页面上保持一致,而不会在每次翻译时出现差异。
评价
此插件暂无评价。
贡献者及开发者
更新日志
1.0.29
- Fixed: the shared Forge interface (dashboard, Connect, credits) could display in a stale translation, or fall back to English, on sites using a community language pack. It was reading the plugin’s own bundled catalogue instead of the pack WordPress installs.
- Russian and Ukrainian are no longer bundled with the plugin. Both now have community-reviewed language packs on translate.wordpress.org, which WordPress uses in preference to anything shipped here — so bundling our own copy could only ever serve an older, unreviewed version. The download is 36% smaller than in 1.0.25.
- Translations: a large quality pass across all 13 bundled languages. Terminology now follows each locale’s official WordPress glossary, and the Japanese, French, German, Spanish and Brazilian Portuguese catalogues follow their locale’s published style guide — Japanese spacing and punctuation, French apostrophes and non-breaking spaces, German and Spanish quotation marks. Corrections made by the Dutch and Polish translation editors have been adopted as-is.
1.0.28
- Translations: reviewed every locale against WordPress core’s own wording and corrected 692 strings. The plugin now uses the same vocabulary core does — the Russian word for “posts”, the French term for permalinks, the Italian term for unlinking, and so on — instead of a plausible-but-foreign synonym. Two strings that had been left in English in the Hindi catalogue are translated, and a Hindi string that said the opposite of what it meant (“Disconnect”) is fixed.
1.0.27
- Translations: every bundled language is now complete. 227 missing strings were translated across the 15 supported locales, and 62 plural forms that carried the English two-form shape were rebuilt with the correct number of forms for their language (3 for Russian, Ukrainian and Polish, 6 for Arabic, 1 for Japanese, Korean and Chinese) — those catalogues previously failed to compile and picked the wrong plural at runtime.
- Dropped 49 placeholder language files that were only 1–4% translated. They shipped almost nothing but English and made the download 24% larger. The 15 supported locales are unchanged: Arabic, German, Spanish, French, Hindi, Italian, Japanese, Korean, Dutch, Polish, Portuguese (Brazil), Russian, Turkish, Ukrainian and Chinese (Simplified).
1.0.26
- Fixed: hreflang alternates pointed at the page being viewed instead of the translation. On an English page the
es,deandx-defaultlinks all resolved back to the English URL (and the same on every other language), so search engines discarded the annotation. Both thewp_headtags and the hreflang sitemap are affected. - Fixed: the canonical URL on a translated page could resolve to a sibling translation instead of the page itself.
- Fixed: on a non-default-language page, permalinks lost their language prefix, because the language-aware
home_url()was being used as the base for detecting it. - Fixed:
/sitemap-hreflang.xmland/sitemap-hreflang-N.xmlwere redirected to a trailing-slash URL before the sitemap could render. - Plugin name now mentions hreflang SEO, which the plugin has always handled.
1.0.25
- readme: clearer plugin title, updated tags and an expanded FAQ covering multilingual setup, WooCommerce, hreflang, migration and RTL.
- No functional changes.
1.0.24
- Security hardening: all dynamic output is now escaped late with the context-appropriate function (esc_html/esc_attr/esc_url, esc_html__ for translated strings used as format strings, and wp_kses for trusted pre-built admin markup). No behavioural changes.
- The glossary CSV export now neutralises CSV/formula injection in exported cells.
1.0.23
- Free now supports an unlimited number of languages with no plan-based cap — removed all license-gated language-limit code (no “locked” language rows, no over-limit notice, no limit on saving).
- Tightened the glossary REST list endpoint to the same administrator capability as glossary management.
1.0.22
- Hardened WP-CLI export: files are now always written to a plugin-slug folder inside the uploads directory (wp-content/uploads/langforge/) instead of an arbitrary path, so nothing is ever written into the plugin folder.
- Uninstall cleanup now only removes data under the plugin’s own unambiguous prefix, so unrelated options/metadata belonging to other plugins are never deleted.
1.0.18
- New: Support menu item that opens the Avakode support dashboard.
- New: Opt-in anonymous usage analytics (OFF by default) — see Third-Party Services.
- New: Contextual, dismissible Pro feature tips on the plugin dashboard (Free users only).
1.0.15
- WordPress.org compliance and licensing hardening.
- Pro entitlement is now resolved by the Lang Forge Pro add-on; the free plugin bundles no licensing SDK.
- The plugin no longer modifies admin notices belonging to other plugins.
- readme metadata cleanup.
1.0.0
- Initial release.
