Start by forking this repository or cloning it to your GitHub account.
a. Set up the project on Lokalise with source language is English (en), and the target language is German (de).
b. Enable automations for target language from machine translation when new source translation keys are added or updated.
Next, update the necessary variables and your API token secret.
a. Get Lokalise API Token here and add API_TOKEN
secret as shown below picture.
b. Add following variables
Variable | value | Note |
---|---|---|
PRODUCTION_BRANCH_RESTORE_COMMIT | Used by Reset sceduler action | |
PROJECT_ID | Get Lokalise project ID from previous step |
Navigate to your GitHub project > Settings > Actions and update workflow permissions fields. a. Enable read and write permission. b. All GitHub Actions to create Pull request
a. Signup/Login to Vercel with GitHub account.
b. Connect your GitHub project to Vercel. When doing this, choose a project name that accurately represents the project's purpose.
You will need to manually push the source translation keys from the main branch. Run GitHub action PUSH
Trigger an automation run on the Lokalise project.
Review the changes made by checking Vercel deployment preview link, and if they are satisfactory.
Deploy this template using Vercel:
Anil Kumar ( @anilbms75 )
This project is forked and inspired from nextly-template project.