BoxLang 🚀 A New JVM Dynamic Language Learn More...
This project provides commands for pushing and pulling translations from Pixl8's Translation manager.
Before using the commands, you must setup your API credentials and API endpoint for your translation server:
# to set API key:
pixl8 translations setCredentials
# to set Endpoint:
pixl8 translations setEndpoint
Your endpoint should omit the trailing slash and include the API
path. For example, https://translations.mycompany.com/api/translations/v1
.
To push translations, use the pixl8 translations push
command. Arguments:
projectSlug
= ID of the project, you could extract this
from the project's box.json
file, for exampleprojectVersion
= Version of the project to publish.
Must be three point semver version number with no decorations.
Suggest always using 0
for patch version. Examples:
0.5.0, 4.1.0, 4.2.0, etc.sourceDirectory
= Source directory in which
.properties
files live. For Preside extensions,
projects, etc. this will be the i18n
directoryTo pull translations, use the pixl8 translations pull
command. Arguments:
projectSlug
= ID of the project, you could extract this
from the project's box.json
file, for exampleprojectVersion
= Version of the project to pull. Must
be three point semver version number with no decorations.targetDirectory
= Directory in which to install
.properties
files. For Preside extensions, projects,
etc. this will be the i18n
directorylanguages
= Comma separated list of language codes to
pull. e.g. es,fr,de
Use the pixl8 translations presideprojectpull
command to
mass download translations for Preside, your project and all its
extensions in one easy go! Arguments:
projectSlug
= ID of the project, you could extract this
from the project's box.json
file, for exampleprojectVersion
= Version of the project to pull. Must
be three point semver version number with no decorations.rootDirectory
= Root directory of the Preside app.
Expect there to be a /preside
folder and an
/application
folder in this directory.languages
= Comma separated list of language codes to
pull. e.g. es,fr,de
$
box install pixl8-translation-manager-commandbox-commands