Skip to main content
Google Cloud Storage

Automatically upload language files to a GCS bucket of your choice at export.

Ilya Krukowski avatar
Written by Ilya Krukowski
Updated this week

This feature is available starting from the Pro plan.

Use this app if you serve static content including your language files from a Google Cloud Storage bucket.

Prerequisites

First of all, you'll need to generate a Google service account key in JSON format. We highly recommend creating and using a separate service account key JSON for this app. Check this document to learn more about service account credentials.

Also you'll need to create a bucket to upload your files to.


Setup

Open your Lokalise project and proceed to Apps:

Find Google Cloud Storage in the list, click on it and then press Install.

You'll need to specify Service account key JSON, Project ID, and Bucket name:

Optionally, provide the directory prefix.

Once you are ready, click Save configuration.


Usage

As the app is set up, you can trigger it with each file export. 

Web dashboard

Proceed to the Download page and enable the Google Storage checkbox in the App triggers section:

Then simply click Build and download or Build only.

CLI tool

A CLI version 0.47 or higher is required to use this app. Provide the --triggers=gcs parameter when running the file download command.

API

Add the 'gcs' option to the triggers param when sending the Download files request. Please note that we can export content of any project branch using this endpoint.


Special notes

Export errors

When an export error occurs, the user who triggered the export will receive an email with a subject "Google Cloud Storage integration: An error occurred". The email will contain information about the error:

View sample email

Did this answer your question?