Skip to main content

Github Actions

Automatically upload and download localizable files to the Translized translation management platform.

info

Configuration file .translized.yml should exist in a root directory of your project. More details about file and how to create it can be found here.

If you don't have it already, create .github/workflows folder.

Translized upload action

Upload localizable files to the Translized translation management platform. For detailed documentation of Translized CLI, please visit the documentation.

Example usage

Create upload.yml file in .github/workflows folder and put the following code in it.

name: upload_translized
on:
push:
branches:
- 'main'
paths:
- 'languages/**'

jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Copy repository
uses: actions/checkout@v4

- name: Translized upload
uses: translized/upload@v1.0

This job will upload your localization files to Translized whenever some of the localization files, which are in languages folder, change.

Translized download action

Download your localization files from Translized translation management platform. For detailed documentation of Translized CLI, please visit the documentation.

Example usage

Create download.yml file in .github/workflows folder and put the following code in it.

name: download_translized
on:
push:
tags:
- '*'

jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Copy repository
uses: actions/checkout@v4

- name: Translized download
uses: translized/download@v1.0

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update translation files
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: 'Update translation files'
body: Updated translation files from Translized.

This job will download your latest localization files from Translized whenever you push new tag, and pull request with the new files is created.

Support

Contact us through email: info@translized.com