Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: chatwoot google translation activation #310

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions docs/reports/2024-02-13-chatwoot-translation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 2024-02-13 Chatwoot translation

Adding translation to chatwoot.

See https://www.chatwoot.com/docs/product/features/google-translate/


## Configure a google account

Following https://cloud.google.com/translate/docs/setup

I wanted to create a specific project in Google Cloud Platform but I'm not able to link it to the invoice account that we use for robotoff. We have two project using this account.
I will add my API key to *openfoodfacts* (under no organization).

First Activate translation API:

* From project home page
* API and services --> Activated API and services --> + activate API and services button
* search translation
* choose cloud translation API
* activate

(in my case it was already activated !)

Create identifier:
* From project home page
* API and services --> Identifier
* click create identifiers / Service account
* Add a sensible name and description to the account (here chatwoot translation)
* Enable it to access to google translation as a user

![](media/2024-02-13-google-chatwoot-account-role.png)

* and create
* then go to this account,
* go to keys tab and add a key, json
* it creates a key and a json file is downloaded

## Configure Chatwoot

Go in parameters / applications / configure Google Translate

* Paste project ID (you get it in google cloud console, on project home page)
* Paste the content of the JSON file uploaded as key was created in google cloud
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading