# mediafly-translate

## Setup
Below is a description about how to use these files:

Place `mediafly-translate.config.json` at the root of your project. 
Configure this file with appropriate credentials.

Create a folder called `translations` at the root of your project.
Create a file called `locale-en.json` in the `translations` folder.

*Advanced*: You can also create a folder named `locale-en` and place an `index.js` in it and export out a CommonJS module.

## Usage Commands:
- Install: `npm install git+ssh://git@bitbucket.org/mediafly-team/mediafly-translate.git#v3.6.0 -g`
- Run Google Translate: `mediafly-translate translate`
- Export: `mediafly-translate export`
- Import: `mediafly-translate import`

## Google Cloud Project

As of May 2025, a new Google Cloud project, `mediafly-translation-sheets-v2` has been established within the Mediafly organization (ID `937658937559`) to provide a service account for working with the Google APIs needed for the translation process.

The dashboard for the project is: https://console.cloud.google.com/home/dashboard?inv=1&invt=Abxj8w&orgonly=true&project=mediafly-translation-sheets-v2&supportedpurview=organizationId
