File tree Expand file tree Collapse file tree
src/lib/services/integrations/translators Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -909,7 +909,7 @@ Sveltia CMS comes with a handy Google Cloud Translation API integration so that
9099091. Update your configuration file to enable the [i18n support](https://decapcms.org/docs/i18n/) with multiple locales.
9109101. Sign in or sign up for [Google Cloud](https://cloud.google.com/) and create a new project.
9119111. Enable the [Cloud Translation API](https://console.cloud.google.com/apis/library/translate.googleapis.com).
912- 1. Create a [new API key](https://console.cloud.google.com/apis/credentials) and copy it.
912+ 1. Create a [new API key](https://console.cloud.google.com/apis/api/translate.googleapis.com/ credentials) and copy it.
9139131. Open an entry in Sveltia CMS.
9149141. Click on the Translation button on the pane header or each field, right next to the 3-dot menu.
9159151. Paste your key when prompted.
Original file line number Diff line number Diff line change 55const serviceId = 'google' ;
66const serviceLabel = 'Google Cloud Translation' ;
77const developerURL = 'https://console.cloud.google.com/apis/library/translate.googleapis.com' ;
8- const apiKeyURL = 'https://console.cloud.google.com/apis/credentials' ;
8+ const apiKeyURL = 'https://console.cloud.google.com/apis/api/translate.googleapis.com/ credentials' ;
99const apiKeyPattern = / A I z a [ 0 - 9 A - Z a - z - _ ] { 35 } / ;
1010
1111/**
You can’t perform that action at this time.
0 commit comments