Google Play 商店集成

通过使用 Crowdin 的 Google Play 集成,您可以加快应用的数据本地化进程。 一旦启用了该集成,商店页面的所有文本都会被收集到一个文件中,并添加到您在 Crowdin 的项目中。 当译文完成后,只需几次点击就可以将它们添加至商店中的应用页面中。

注意:您需要在 Crowdin 账户中安装 Google Play 集成,然后才能进行设置和使用。

使用 Crowdin 链接至 Google Play

若要将 Google Play 与您在 Crowdin 的项目连接,请遵循如下步骤:

  1. 打开您的项目并转到集成选项卡。
  2. 点击集成列表中的Google Play
  3. 输入软件包名称并点击 设置集成

Google Play 集成 - 设置

如果输入错误,您可以编辑包名,并根据需要删除集成。

Google Play 集成 - 编辑包名称

集成会将源文本收集到一个文件中,该文件将放置在 源 > 文件 中。 默认情况下,文件名为 google_play.xml

发布译文

要发布译文,请遵循以下步骤:

  1. 打开您的项目并转到 集成 > Google Play
  2. 单击 预览并发布译文发布译文
  3. 可用的译文将根据配置的导出选项显示。 See whether all translations look good and clear the checkbox next to the languages you don’t want to publish. 单击 下一步 以继续。 Selecting Languages for Publishing
  4. 上传包含您的 服务账号凭据 的文件,然后点击 发布 Google Play Integration Publish Translations
  5. 您可以在下一个对话框中跟踪发布进度。 译文上传后,单击 关闭Google Play Integration Publishing Progress
Note: Google Play limits the number of times you can publish translations for the same language in one day.

创建服务账户凭据

要将翻译从 Crowdin 直接发布到您的 Google Play 项目,您需要事先配置对 Google Play 管理中心的访问权限。

注意:出于安全原因,包含您的服务账户凭据的文件不会存储在 Crowdin 中,因此每次您想要将翻译发布到 Google Play 时都需要上传此文件。

To create and add your service account credentials, follow these steps:

  1. Link Google Play Console with Google Cloud project:

    1. Open the Google Play Console and go to Setup > API access.
    2. Link an existing project or create a new one.

  2. Generate service account credentials:

    1. Go to Service accounts. If prompted, select one of the existing projects.

    2. 点击 创建服务帐户

    3. Specify the service account name and click Create and Continue.

    4. From the Role list, select Service Accounts > Service Account User and click Done.

    5. Open the Actions menu on the created service account and select Manage keys.

    6. In the Keys tab, click Add key > Create new key.

    7. 选择 JSON 并单击 创建

    A JSON file that contains your service account credentials will be downloaded to your machine.

  3. Grant access to your service account:

    1. In the Google Play Console, go to Setup > API access and click Grant access on your service account.

    2. In the Account permissions tab, select the following permissions:

      • View app information and download bulk reports (read-only)
      • Publish Play Games Services projects
      • Release to production, exclude devices, and use Play App Signing
      • Manage store presence

    3. 单击 邀请用户

然后,您可以使用该文件和您的服务账户凭据将您的译文从 Crowdin 发布到 Google Play。

本文是否有帮助?