localize ai
1.0.0
Localize AI is a powerful GitHub Action that automates the localization process of your apps using the state-of-the-art GPT-4 language model. It seamlessly translates your app's content into multiple languages with a simple configuration setup, saving you time and resources.
Main features:
Example repository
Example React project
Create a workflow file in your repository, for example workflow.yaml:
name: Localize strings
on:
push:
paths:
- locales/**
jobs:
localize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Localize strings
uses: voloshinskii/[email protected]
with:
model: gpt-4
openai-token: ${{ secrets.OPENAI_TOKEN }}
locales-path: ./locales
main-locale: en
- name: commit and push all changed files
env:
CI_COMMIT_MESSAGE: Localize new strings
CI_COMMIT_AUTHOR: CI
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "[email protected]"
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push