gsheet_to_arb plugin requires Google Sheets API access in order to fetch the data from Google Spreadsheet document. There are two possible options to provide such a access:
- Used from the local environment
- Requires to login via browser
- Used for automatic CI/CD deployment
- Requires Service Account Private Key
- Open Google Cloud Platform console - https://console.cloud.google.com/
- Create a new project or use the existing one
- From the side menu select
APIs & Services -> Dashboard
- Select
ENABLE APIS AND SERVICES
button and make sureGoogle Sheets API
is enabled - Open
Credentials
tab on the left Create credentials -> Create OAuth client ID -> Other
- you may need to configure consent screen
- Update
gsheet_to_arb.yaml
file with the client configurationoauth_client_id: client_id: "<client_id>", client_secret: "<client_secret>"
- Open Google Cloud Platform console - https://console.cloud.google.com/
- Create a new project or you the existing one
- From the side menu select
APIs & Services -> Dashboard
- Select
ENABLE APIS AND SERVICES
button and make sureGoogle Sheets API
is enabled - Open
Credentials
tab on the left Create credentials -> Service account key
- Select
Service account
or create new if not created yet - Select
JSON
key type. - Select Create
- Download the *.json file on your local drive - do not share it with others
- Update
gsheet_to_arb.yaml
file with the downloaded json configurationservice_account_key: client_id: "<client_id>" client_email: "<private_key>" private_key: "<private_key>"
- Make sure the
gsheet_to_arb.yaml
is not added to the git repository as it contains your private key data.