翻译并本地化您的商店

只要不存在翻译,您的在线商店就会以您的主要语言显示内容。您可以通过使用 CSV 文件添加您自己的翻译或使用兼容的第三方应用来翻译在线商店的内容。翻译商店后,客户可按其本地语言来浏览您的商店、结账以及接收通知。

本页相关主题

  • 使用 CSV 文件添加语言翻译

  • 已翻译的资源类型和字段

  • 结账和电子邮件通知

  • 用于模板和结账页面的翻译

使用 CSV 文件添加语言翻译

您可以在 CSV 文件中导入已翻译的内容。通过使用 CSV 文件导入您自己的翻译,您可以管理语言翻译,而无需使用第三方翻译应用。

限制:

  • 不能翻译资源标签。

  • 如果您使用第三方应用,您的应用可能默认不支持以多种语言进行销售。如果您不确定应用是否提供此支持,请联系该应用的开发人员。

  • 如果您更改产品的 handle,则特定于语言的 URL 将不支持该产品的 URL 重定向。

  • 不能翻译产品 URL。即使客户以另一种已发布的语言查看您的网站,产品 URL 仍采用创建时所用的语言。

以下步骤简要介绍了使用 CSV 文件来导出、修改和导入语言翻译的过程。

步骤 1:导出 CSV 文件

您可以从 Shopify 后台导出 CSV 文件,该文件包含您所选语言的当前翻译列表。系统会通过电子邮件将该 CSV 文件发送给您。

CSV 文件包含以下列:

  • 类型 - 资源类型,例如产品、文章、产品系列、页面或博客。

  • 标识 - 资源 ID。

  • 字段 - 字段,例如标题、body_html 或 meta_title。

  • 区域设置 - 内容的目标翻译语言。

  • 状态 - 标识翻译是否过时。

  • 默认内容 - 要翻译的原始内容。

  • 已翻译内容 - 已翻译的内容。您可以将翻译的内容添加到此行。

步骤:

  1. 在 Shopify 后台中,转到设置

  2. 点击语言

  3. 点击导出

  4. 选择要导出的语言。您可以选择所有语言来导出您支持的所有语言的翻译。

  5. 选择以下选项之一:

    • 选择所有内容以导出所有翻译。

    • 如果您使用元字段向商店添加内容,请选择元字段。

    • 如果您已将翻译添加到商店,并且想导出默认语言的过期翻译,请选择过时

    • 选择未翻译的内容以仅导出当前未翻译的内容。

  6. 单击导出。系统将通过电子邮件将导出的 CSV 文件发送给您。

步骤 2:添加翻译

将语言翻译直接添加到导出 CSV 文件的已翻译内容列,然后保存更改。无需修改 CSV 文件中任何其他列中的值。

如果您使用电子表格程序编辑 CSV 文件,请确保将默认分隔符设置为逗号,而不是分号。在某些情况下,CSV 导出文件中会包含具有分号的 HTML 代码,这可能导致电子表格程序中的列以错误方式呈现。

步骤 3:导入您的 CSV 文件

导出和编辑语言翻译 CSV 文件后,您可以将该文件导入 Shopify 后台以更新在线商店中的已翻译内容。

步骤:

  1. 在 Shopify 后台中,转到设置

  2. 点击语言

  3. 点击导入

  4. 点击添加文件,然后导航到翻译 CSV 文件。

  5. 如果您希望用 CSV 文件中的已翻译语言内容替换所有现有翻译,请选中覆盖所有现有翻译。如果您只想导入新的翻译内容,而不替换任何现有翻译,请取消选中覆盖所有现有翻译

  6. 点击上传并继续

  7. 查看使用 CSV 导入语言信息,然后点击导入。如果您的 CSV 文件包含错误,导入将停止,并且这些错误会在使用 CSV 导入语言页面上列出。

  8. 系统会通过电子邮件向您发送确认信息,其中包含的列表会列出任何导入失败或被跳过的翻译内容。

已翻译的资源类型和字段

有关可翻译的资源类型的信息,请参阅 TranslatableResourceType 参考文档。

无法翻译标签(例如产品标签、文章标签和博客标签)。

结账和电子邮件通知

您添加和发布某种语言后,已翻译的内容将显示在结账页面以及发送给客户的任何电子邮件通知中。结账页面的语言与客户用于浏览您在线商店的语言相同。结账页面提供某些语言的默认翻译,但您可以使用兼容的第三方翻译应用来自定义任何已翻译的内容,或使用 CSV 文件导入您自己的翻译。

如果翻译功能适用于电子邮件通知,系统会自动以客户下单时所用的语言向客户发送电子邮件通知。您可以针对已添加到商店中的语言来添加或编辑电子邮件通知翻译。

步骤:

  1. 在 Shopify 后台中,转到设置

  2. 点击通知

  3. 点击要翻译的电子邮件通知。

  4. 翻译下拉菜单中,选择要为其添加翻译的语言。

  5. 在可编辑字段中添加或编辑电子邮件通知的翻译。

  6. 点击保存

预览电子邮件通知

您可以预览已翻译的电子邮件通知。

步骤:

  1. 在 Shopify 后台中,转到设置

  2. 点击通知

  3. 点击要预览的电子邮件通知。

  4. 点击预览

  5. 预览页面上,点击语言下拉菜单,然后选择要预览的语言。

用于模板和结账页面的翻译

以下语言可用于提供模板翻译:

  • 简体中文

  • 繁体中文

  • 克罗地亚语

  • 捷克语

  • 丹麦语

  • 荷兰语

  • 英语

  • 芬兰语

  • 法语

  • 德语

  • 希腊语

  • 印地语

  • 匈牙利语

  • 印度尼西亚语

  • 意大利语

  • 日语

  • 韩语

  • 立陶宛语

  • 马来语

  • 挪威语

  • 波兰语

  • 葡萄牙语(巴西)

  • 葡萄牙语(葡萄牙)

  • 罗马尼亚语(罗马尼亚)

  • 俄语

  • 斯洛伐克语(斯洛伐克)

  • 斯洛文尼亚语(斯洛文尼亚)

  • 西班牙语

  • 瑞典语

  • 泰语

  • 土耳其语

  • 越南语

以下语言可用于提供结账页面翻译和系统翻译:

  • 简体中文

  • 繁体中文

  • 克罗地亚语

  • 捷克语

  • 丹麦语

  • 荷兰语

  • 英语

  • 芬兰语

  • 法语

  • 德语

  • 希腊语

  • 印地语

  • 匈牙利语

  • 印度尼西亚语

  • 意大利语

  • 日语

  • 韩语

  • 立陶宛语

  • 马来语

  • 挪威语

  • 波兰语

  • 葡萄牙语(巴西)

  • 葡萄牙语(葡萄牙)

  • 罗马尼亚语(罗马尼亚)

  • 俄语

  • 斯洛伐克语(斯洛伐克)

  • 斯洛文尼亚语(斯洛文尼亚)

  • 西班牙语

  • 瑞典语

  • 泰语

  • 土耳其语

Shopify商户官网原文详情:

Translating and localizing your store

Whenever translations don't exist, your online store shows content in your primary language. You can translate the content of your online store by adding your own translations using CSV files, or by using a compatible third-party app. After translating the store, customers can browse your store, checkout, and receive notifications in their local language.

On this page

  • Adding language translations using CSV files

  • Translated resource types and fields

  • Checkout and email notifications

  • Translations available for themes and checkout

Adding language translations using CSV files

You can import translated content in CSV files. Importing your own translations using CSV files lets you manage your language translations without the use of a third-party translation app.

Restrictions:

  • You can't translate resource tags.

  • If you use a third-party app, then your app might not support selling in multiple languages by default. If you're not sure about your app, then contact the app's developer.

  • If you change a product's handle, then the URL redirects for that product won't be supported for language-specific URLs.

  • You can't translate product URLs. Product URLs remain in the language that they were created in, even when a customer views your site in another published language.

The following high-level steps describe the process to export, modify, and import language translations using CSV files.

Step 1: Export your CSV file

You can export a CSV file from your Shopify admin that contains the current list of translations for the languages that you select. The CSV file is emailed to you.

The CSV file contains the following columns:

  • Type - The resource type, such as Products, Articles, Collections, Pages, or Blogs.

  • Identification - The resource ID.

  • Field - The field, such as title, body_html, or meta_title.

  • Locale - The language that the content is being translated to.

  • Status - Identifies whether the translation is outdated.

  • Default content - The original content to be translated.

  • Translated content - The translated content. You can add your translated content to this row.

Steps:

  1. From your Shopify admin, go to Settings.

  2. Click Languages.

  3. Click Export.

  4. Select the language that you want to export. You can select All languages to export the translations for all languages that you support.

  5. Select one of the following options:

    • Select All content to export all translations.

    • Select Metafields if you're using metafields to add content to your store.

    • Select Outdated if you've already added translations to your store and want to export translations that are out of date with your default language.

    • Select Untranslated content to export only the content that isn't currently translated.

  6. Click Export. The exported CSV file is emailed to you.

Step 2: Add your translations

Add your language translations directly to the Translated content column of the exported CSV file, and then save your changes. You don't need to modify the values in any of the other columns in the CSV file.

If you use a spreadsheet program to edit your CSV file, then ensure that your default delimiter is set to commas instead of semicolons. In some cases, HTML codes with semicolons are included in your CSV export file, which might cause the columns to render incorrectly in your spreadsheet program.

Step 3: Import your CSV file

After you export and edit your language translations CSV file, you can import it to your Shopify admin to update the translated content in your online store.

Steps:

  1. From your Shopify admin, go to Settings.

  2. Click Languages.

  3. Click Import.

  4. Click Add file and then navigate to your translations CSV file.

  5. Check Overwrite any existing translations if you want the translated language content in your CSV file to replace any existing translations. Uncheck Overwrite any existing translations if you want to import only the new translated content, and not replace any existing translations.

  6. Click Upload and continue.

  7. Review the Import language with a CSV information, and then click Import. If your CSV file contains errors, then the import is stopped, and the errors are listed on the Import language with a CSV page.

  8. A confirmation is emailed to you, which includes a list of any translated content that failed or was skipped.

Translated resource types and fields

For information about types of resources that are translatable, refer to the TranslatableResourceType reference documentation.

Tags such as product tags, article tags, and blog tags can't be translated.

Checkout and email notifications

After you add and publish a language, the translated content is displayed in the checkout and in any email notifications sent to your customer. The checkout displays in the same language that a customer uses to browse your online store. The checkout has default translations for some languages, but you can customize any translated content using a compatible third-party translation app, or importing your own translations using CSV files.

If translations are available for an email notification, then a customer is automatically sent email notifications in the language that they placed their order in. You can add or edit email notification translations for the languages that you have added to your store.

Steps:

  1. From your Shopify admin, go to Settings.

  2. Click Notifications.

  3. Click the email notification that you want to translate.

  4. From the Translate drop-down, select the language that you want to add translations for.

  5. Add or edit the translations for your email notification in the editable fields.

  6. Click Save.

Preview email notifications

You can preview email notifications that you have translated.

Steps:

  1. From your Shopify admin, go to Settings.

  2. Click Notifications.

  3. Click the email notification that you want to preview.

  4. Click Preview.

  5. On the Preview page, click the language drop-down and then select the language that you want to preview.

Translations available for themes and checkout

The following languages are available for translation for themes:

  • Chinese (Simplified)

  • Chinese (Traditional)

  • Croatian

  • Czech

  • Danish

  • Dutch

  • English

  • Finnish

  • French

  • German

  • Greek

  • Hindi

  • Hungarian

  • Indonesian

  • Italian

  • Japanese

  • Korean

  • Lithuanian

  • Malay

  • Norwegian

  • Polish

  • Portuguese (Brazil)

  • Portuguese (Portugal)

  • Romanian (Romania)

  • Russian

  • Slovak (Slovakia)

  • Slovenian (Slovenia)

  • Spanish

  • Swedish

  • Thai

  • Turkish

  • Vietnamese

The following languages are available for translation for checkout and system translations:

  • Chinese (Simplified)

  • Chinese (Traditional)

  • Croatian

  • Czech

  • Danish

  • Dutch

  • English

  • Finnish

  • French

  • German

  • Greek

  • Hindi

  • Hungarian

  • Indonesian

  • Italian

  • Japanese

  • Korean

  • Lithuanian

  • Malay

  • Norwegian

  • Polish

  • Portuguese (Brazil)

  • Portuguese (Portugal)

  • Romanian (Romania)

  • Russian

  • Slovak (Slovakia)

  • Slovenian (Slovenia)

  • Spanish

  • Swedish

  • Thai

  • Turkish

文章内容来源:Shopify商户官方网站

(本文内容根据网络资料整理,出于传递更多信息之目的,不代表连连国际赞同其观点和立场)