esun Esun_MultiLocaleTranslation::config The popup selects this provider when it is enabled. Esun\MultiLocaleTranslation\Model\Config\Source\TranslationProvider Language code for Magento default values, normally en. Selected fields are excluded from popup and batch translation. Leave empty to translate all currently supported fields. Esun\MultiLocaleTranslation\Model\Config\Source\SkippedFields 如何创建 DeepL API Key:
  1. 打开 DeepL API,注册 API Free 或 API Pro 套餐。
  2. 登录 DeepL 账号,在“API Keys”页面创建并复制 Auth Key。
  3. API Free 选择 api-free.deepl.com;API Pro 选择 api.deepl.com。
  4. 把 Key 填入下面的 API Key,设置 Enable 为 Yes 并保存。

安全提醒:API Key 只会加密保存在 Magento 后台,不会发送到浏览器。Free Key 通常以 :fx 结尾。

]]>
Enable DeepL automatic translation in the translation popup. Magento\Config\Model\Config\Source\Yesno Select the endpoint matching your DeepL API Free or API Pro account. Esun\MultiLocaleTranslation\Model\Config\Source\DeepLApiUrl Get the DeepL API Key from your DeepL account and enter it here. Magento\Config\Model\Config\Backend\Encrypted Prefer a formal or informal style when the target language supports it. Esun\MultiLocaleTranslation\Model\Config\Source\DeepLFormality Allowed range: 5–120 seconds. validate-number validate-greater-than-zero
如何创建 Google Cloud Translation V3 服务账号:
  1. 登录 Google Cloud Console,创建或选择一个项目。
  2. 为项目绑定 Billing 结算账号。Google Cloud Translation 是计费服务。
  3. 打开 Cloud Translation API,点击“启用”。
  4. 进入 IAM 和管理 → 服务账号,创建服务账号。
  5. 为服务账号分配 Cloud Translation API User 角色(roles/cloudtranslate.user)。
  6. 打开该服务账号的“密钥”,选择“添加密钥 → 创建新密钥 → JSON”,下载 JSON 文件。
  7. 把 JSON 文件上传到下面的 Service Account JSON,设置 Enable 为 Yes,然后保存配置。

安全提醒:JSON 文件包含私钥,请勿通过聊天、邮件或公共网盘发送;如果泄露,请立即在 Google Cloud 删除该密钥并重新创建。

普通翻译请选择 Location = global。只有使用 Google Glossary 时才选择 us-central1 并填写 Glossary ID。

]]>
Uses Google Cloud Translation Advanced v3 (NMT / Glossary). Magento\Config\Model\Config\Source\Yesno Upload a Google service account JSON key. It is validated and stored privately under var/, never pub/media. Esun\MultiLocaleTranslation\Model\Config\Backend\ServiceAccountFile esun/multilocale_translation/google Use global normally. Google Glossary currently requires us-central1. Esun\MultiLocaleTranslation\Model\Config\Source\GoogleLocation Enter only the existing Google Glossary ID. When set, Location must be us-central1. Apply glossary terms without case sensitivity. Magento\Config\Model\Config\Source\Yesno Allowed range: 5–120 seconds. validate-number validate-greater-than-zero
Maximum tasks processed each minute. Allowed range: 1–50. validate-digits validate-greater-than-zero Stops claiming new tasks after this time. The current task is allowed to finish. Allowed range: 10–300 seconds. validate-digits validate-greater-than-zero