/gengo-translate

Lightning web component leveraging the Gengo translation api to aid in translating record content

Primary LanguageApex

Gengo Translate

CircleCI

Gengo Integration

Gengo Translate Integration

Installing Gengo Translate using a Scratch Org

  1. Set up your environment. Follow the steps in the Quick Start: Lightning Web Components Trailhead project. The steps include:
  • Enable Dev Hub in your Trailhead Playground
  • Install Salesforce CLI
  • Install Visual Studio Code
  • Install the Visual Studio Code Salesforce extensions, including the Lightning Web Components extension
  1. If you haven't already done so, authenticate with your hub org and provide it with an alias (myhuborg in the command below):
sfdx force:auth:web:login -d -a myhuborg
  1. Clone the repository:
git clone https://github.com/seanrussell/gengo-translate.git
cd gengo-translate
  1. Create a scratch org:
sfdx force:org:create -s -f config/project-scratch-def.json
  1. Push the app to your scratch org:
sfdx force:source:push
  1. Assign the Translation Manager permission set to the default user:
sfdx force:user:permset:assign -n Translation_Manager

  1. Open the scratch org:
sfdx force:org:open
  1. Register a domain
  • In order to use lightning components, you must register a unique domain for your org.
  1. Create a Site
  • Create a public site.
  • The api name for the site should be "Gengo_Public".
  • Add GengoCallbackHandler apex class to public site access settings.
  • Finally, activate the site.
  1. Modify Record Page layouts and add the gengoTranslate component
  • For example, modify the Case record page layout to add the gengoTranslate component to the page.