Skip to content

Composer plugin to fetch translations files from xilofone.rezo-zero.com and update them in your PHP project.

Notifications You must be signed in to change notification settings

rezozero/xilofone-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rezozero/xilofone-plugin

Fetch XLIFF translations files from xilofone.rezo-zero.com and update them in your PHP project.

Plugin will download translations files each time you run composer update. Or you can run it manually with:

composer xilofone:fetch-files

Install

composer require --dev rezozero/xilofone-plugin

Configuration

Add the following configuration in your composer.json file:

{
    "extra": {
        "xilofone": {
            "file_id": "30",
            "destination_folder": "translations"
        }
    },
    "config": {
        "allow-plugins": {
            "rezozero/xilofone-plugin": true
        }
    }
}

Then add your secret credentials in your project .env.local file:

XILOFONE_PLUGIN_USERNAME=username
XILOFONE_PLUGIN_PASSWORD=password

Multiple files

You can fetch multiple files by adding them in your composer.json file:

{
    "extra": {
        "xilofone": {
            "files": [
                {
                    "file_id": "30",
                    "destination_folder": "translations"
                },
                {
                    "file_id": "31",
                    "destination_folder": "translations"
                }
            ]
        }
    }
}

About

Composer plugin to fetch translations files from xilofone.rezo-zero.com and update them in your PHP project.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages