Laravel-Crowdin Integration - Automate translations uploading/downloading

Last update: May 25, 2022

Laravel-Crowdin Integration

Automate uploading/downloading translations

Installation

Install the package via composer:

composer require georgii-web/laravel-crowdin-integration --dev

By default, the package uses the following environment variables

CROWDIN_PROJECT_ID
CROWDIN_API_KEY

Config Files

In order to edit the default configuration for this package you may execute:

php artisan vendor:publish --provider="MacPaw\LaravelCrowdinIntegration\CrowdinServiceProvider"

After that, config/crowdin.php will be created. Inside this file you will find all the fields that can be edited in this package.

Full scenario

Add/update lang-file from "/resources/lang/en/{file}" to crowdin.com, translate and approve rows there, download translates to the projects "/resources/lang/{language}/{file}".

Commands

php artisan crowdin:add/update default.php

Translate and approve it on the crowdin.com

php artisan crowdin:download

Check translation in "/resources/lang/{language}/default.php"

FYI

If row was deleted in file, after update it'll be deleted in crowdin.com too. Only approved rows wil be downloaded to the project.

Usage

You can see all the commands in the list of command:

php artisan list

Add File

Add a file from project to Crowdin repository:

php artisan crowdin:add {fileName.ext}

It is work only for adding file, not for updating

Update File

Update exist file from project to Crowdin repository

php artisan crowdin:update {fileName.ext}

It is work only for updating file, not for adding

Upload File

This is command add or update all origin files from a project in Crowdin repository:

php artisan crowdin:upload

No matter file exists or not in Crowdin repository

Build

Build ZIP archive with the latest translations.

php artisan crowdin:build

Download Files

Download translations files from Crowdin repository to your.

php artisan crowdin:download

GitHub

https://github.com/JorisvanW/laravel-crowdin-integration
You might also like...

Handles ActiveRecord's attribute translations

TranslateableBehavior for Yii2 This behavior has been inspired by the great work of Mikehaertl's Translatable Behavior for Yii 1.*. It eases the trans

May 21, 2022

Magento commands to find translations that are present in one CSV file but not in another, and to translate CSV dicts with DeepL

Magento commands to find translations that are present in one CSV file but not in another, and to translate CSV dicts with DeepL

Hyvä Themes - Magento translation CSV comparison command hyva-themes/magento2-i18n-csv-diff This module adds the bin/magento i18n:diff-csv and i18n:tr

Apr 7, 2022

Laradeploy offers you to automate deployment using a GitHub webhook.

Introduction Laradeploy offers you to automate deployment using a GitHub webhook. Simple and fast just make a git push to GitHub deploy the new modifi

Feb 21, 2022

Composer plugin to automate the most common tasks of applications.

Narrowspark Automatic Narrowspark Automatic automates the most common tasks of applications, like installing and removing bundles or providers, copyin

May 24, 2021

Automate aggregation tools to standard alerts from SAP PI/PO (CBMA) for internal support team

Automate aggregation tools to standard alerts from SAP PI/PO (CBMA) for internal support team

✅ PiAlert PiAlert is system for automating the work of SAP PI/PO support team via aggregation of alerts (CBMA messages). Language support: English Рус

Jun 22, 2022

Paddle.com API integration for Laravel with support for webhooks/events

Laravel Paddle This package provides an integration with Paddle.com for Laravel. Read the blogpost about the introduction of the package! Features Sup

May 8, 2022

Paddle.com API integration for Laravel with support for webhooks/events

Laravel Paddle This package provides an integration with Paddle.com for Laravel. Read the blogpost about the introduction of the package! Features Sup

May 8, 2022

Laravel Integration for Switchover PHP SDK. Feature Toggle Management made easy.

Switchover Laravel Integration Switchover Switchover is a Software-As-A-Service for managing feature toggles (aka switches, flags or feature flips) in

Feb 27, 2022

🧩 Laravel Query Builder integration for PhpStorm

🧩 Laravel Query Builder integration for PhpStorm

Laravel Query Laravel + DataGrip = ♥️ This plugin provides database integration for Laravel query builder. Features Schemas, tables, views and columns

Jun 29, 2022
Tradução Magento 2 oficial para português do Brasil do site Crowdin

Tradução para Magento 2 em Português do Brasil (pt_BR) Inclui a tradução mais atualizada para todas as versões do Magento 2. Esse pacote de linguagem

May 6, 2022
Magento2 Spanish (Argentina) language pack build from Crowdin community translation tool.

Magento2-language-es_ar Magento2 Spanish (Argentina) language pack build from Crowdin community translation tool. Paquete de idioma de Español (Argent

Apr 7, 2021
More options when uploading files such as name changes, resizing or compression through TinyPNG.

Kirby Upload Extended More options when uploading files like name changes, resizing via Kirby or compression and optional resizing via TinyPNG. Thanks

Jan 27, 2022
This component simplifies file validation and uploading.

This component simplifies file validation and uploading.

Jun 24, 2022
A layout field that forces translations to have the same structure.
A layout field that forces translations to have the same structure.

Kirby translatedlayout plugin A layout field that forces translations to have anidentical structure to the one of the default language. This is an exp

Apr 25, 2022
🇸🇮 Slovenian translations - language package for Magento 2

Magento 2 Slovenian translations Slovenian (Slovenia) - sl_SI translations for Magento Community Edition 2.x. Translations follow Slovenian grammar an

Jul 7, 2020
H&O Magento 2 Nederlandse vertalingen / Dutch Translations
H&O Magento 2 Nederlandse vertalingen / Dutch Translations

Abandoned / End-of-life We're sorry, but this extension is no longer actively maintained. Please use https://github.com/magento-l10n/language-nl_NL in

Mar 5, 2021