A Laravel Larex plugin to import/export localization strings from/to Crowdin

Overview

Laravel Larex: Crowdin Plugin

Version Downloads PHP Laravel License Build Coverage

A Laravel Larex plugin to import/export localization strings from/to Crowdin

πŸ“‹ Requirements

  • PHP 7.4 | 8.0
  • Laravel β‰₯ 7
  • Laravel Larex β‰₯ v3.5
  • Crowdin API Token v2
  • Crowdin Project ID Crowdin > Project > Settings > API & Webhooks > Project Id [API v2]

πŸš€ Installation

You can install the package using composer:

composer require lukasss93/laravel-larex-crowdin --dev

Then add the service provider to config/app.php.
This step can be skipped if package auto-discovery is enabled.

'providers' => [
    Lukasss93\LarexCrowdin\LarexCrowdinServiceProvider::class
];

βš™ Publishing the config file

Publishing the config file is optional:

php artisan vendor:publish --provider="Lukasss93\LarexCrowdin\LarexCrowdinServiceProvider" --tag="larex-crowdin-config"

πŸ”§ Configuration

  1. Install Laravel Larex β‰₯ v3.5
  2. Publish (if you haven't already) and edit your larex.php config
  3. Append the Crowdin importer in the importers.list array:
    //...
    'importers' => [
        //...
        'list' => [
            //...
            'crowdin' => Lukasss93\LarexCrowdin\Importers\CrowdinImporter::class,
        ],
    ],
    //...
  4. Append the Crowdin exporter in the exporters.list array:
    //...
    'exporters' => [
        //...
        'list' => [
            //...
            'crowdin' => Lukasss93\LarexCrowdin\Exporters\CrowdinExporter::class,
        ],
    ],
    //...
  5. Edit your .env file and append the following strings:
    # You can generate your token here: https://crowdin.com/settings#api-key
    # Please note: this library supports only the Crowdin API v2
    LAREX_CROWDIN_TOKEN=
         
          
    
    # You can get your project id (API v2) here: 
    # https://crowdin.com/project/your-project/settings#api
    LAREX_CROWDIN_PROJECT_ID=
          
    
          
         

πŸ‘“ Usage

  • Run php artisan larex:import crowdin to import strings from your Crowdin Project into your Larex CSV
  • Run php artisan larex:export crowdin to export strings from your Larex CSV into your Crowdin Project
  • You can still use the --include and --exclude options to select specific languages to import/export

βš—οΈ Testing

composer test

πŸ“ƒ Changelog

Please see the CHANGELOG.md for more information on what has changed recently.

πŸ… Credits

πŸ“– License

Please see the LICENSE.md file for more information.

You might also like...
List of 77 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova and Laravel Spark.

Laravel Lang In this repository, you can find the lang files for the Laravel Framework 4/5/6/7/8, Laravel Jetstream , Laravel Fortify, Laravel Cashier

Laravel Impersonate is a plugin that allows you to authenticate as your users.

Laravel Impersonate Laravel Impersonate makes it easy to authenticate as your users. Add a simple trait to your user model and impersonate as one of y

Laravel plugin to track your users logins and alert when a suspicious login occurs
Laravel plugin to track your users logins and alert when a suspicious login occurs

Laravel Suspicious Logins Detect suspicious logins for standard Laravel authentication (base Laravel, Jetstream, etc) and notify a list of administrat

The Pest Laravel Expectations Plugin
The Pest Laravel Expectations Plugin

This Pest plugin adds Laravel specific expectations to the testing ecosystem it('can check model exists', function(){ $user = User::factory()-creat

Laravel style jquery validation plugin

Validator Laravel style jquery validation plugin Validator is a jQuery plugin that emulates the validation class found in the laravel framework. Usage

A simple to use query builder for the jQuery QueryBuilder plugin for use with Laravel.
A simple to use query builder for the jQuery QueryBuilder plugin for use with Laravel.

QueryBuilderParser Status Label Status Value Build Insights Code Climate Test Coverage QueryBuilderParser is designed mainly to be used inside Laravel

Server-side handler of DataTables Jquery Plugin for Laravel 4

Project is not being maintained actively. You will most likely find a better more actively maintained fork here https://github.com/yajra/laravel-datat

Laravel Framework Plugin for PhpStorm / IntelliJ IDEA
Laravel Framework Plugin for PhpStorm / IntelliJ IDEA

IntelliJ IDEA / PhpStorm Laravel Plugin Based on Symfony Plugin Key Value Plugin url https://plugins.jetbrains.com/plugin/7532 Id de.espend.idea.larav

Sqlcommenter is a plugin/middleware/wrapper to augment SQL statements from laravel

sqlcommenter is a plugin/middleware/wrapper to augment SQL statements from laravel with comments that can be used later to correlate user code with SQL statements.

Comments
  • localization.csv already exists

    localization.csv already exists

    Every time I run php artisan larex:import crowdin I get the message The 'resources/lang/localization.csv' already exists.. It works when I delete the file first. But is this the way it should work? It would be easier if the import function just overwrites the existing csv file.

    opened by davidvandriel 1
Releases(v2.0)
Owner
Luca Patera
Full Stack Developer
Luca Patera
Laravel Larex lets you translate your whole Laravel application from a single CSV file.

Laravel Larex Translate Laravel Apps from a CSV File Laravel Larex lets you translate your whole Laravel application from a single CSV file. You can i

Luca Patera 68 Dec 12, 2022
Easy Localization for Laravel

Query String Localization Package for Laravel Use this package to localize your laravel application via query strings easily. Features: Localization b

Cosnavel 50 Dec 15, 2021
Seo Manager Package for Laravel ( with Localization )

Seo Manager Package for Laravel ( with Localization ) lionix/seo-manager package will provide you an interface from where you can manage all your page

Lionix 205 Dec 23, 2022
Package to parse DNA kit files, and import them into Laravel

Package to parse DNA kit files, and import them into Laravel

Family Tree 365 4 Aug 31, 2022
A tool to import Nordigen connected banks Firefly III

Firefly III Nordigen importer A tool to import Nordigen connected banks Firefly III Explore the docs Β» View Firefly III demo Β· Report Bug Β· Request Fe

Firefly III 12 Dec 9, 2021
Export Laravel Horizon metrics using this Prometheus exporter.

Laravel Horizon Prometheus Exporter Export Laravel Horizon metrics using this Prometheus exporter. This package leverages Exporter Contracts. ?? Suppo

Renoki Co. 22 Sep 18, 2022
Export Laravel Octane metrics using this Prometheus exporter.

Laravel Octane Prometheus Exporter Export Laravel Octane metrics using this Prometheus exporter. ?? Supporting If you are using one or more Renoki Co.

Renoki Co. 19 Dec 26, 2022
βš™οΈSimple key/value typed settings for your Laravel app with synchronized json export

Simple key/value typed settings for your Laravel app Create, store and use key/value settings, typed from numbers over dates to array, cached for quic

elipZis 8 Jan 7, 2023
Laravel Nova's Queued Export As CSV Action

Laravel Nova's Queued Export As CSV Action Installation To install through composer, run the following command from terminal: composer require "nova-k

null 9 Dec 15, 2022
If you are beginner in WordPress plugin development or if you want to develop your own store product plugin you use this plugin

hirwa-products-plugin If you are beginner in WordPress plugin development or if you want to develop your own store product plugin you use this plugin

NIYIBIZI HIRWA 1 Aug 23, 2022