Download the PHP package amazeelabs/silverback_translations without Composer
On this page you can find all versions of the php package amazeelabs/silverback_translations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amazeelabs/silverback_translations
More information about amazeelabs/silverback_translations
Files in amazeelabs/silverback_translations
Package silverback_translations
Short Description Provides a way for importing translation sources and exporting translated labels.
License GPL-2.0+
Homepage https://github.com/AmazeeLabs/silverback-mono/tree/development/packages/composer/amazeelabs/silverback_translations#readme
Informations about the package silverback_translations
Silverback translations
The silverback translations module allows the creation of string translation sources via an API endpoint where a POST request with JSON formatted data is allowed.
The endpoint is /translations/create/{context} and can be used to create sources in a specific context (for example /translations/create/gatsby to create sources in the gatsby context).
The format of the JSON string should be like that:
so it is a string that can be generated with the formatjs library. Each nested object in the JSON represent a source string. The defaultMessage property will be used as the source string label and the description property will be appended to the context of the string.
Endpoint access
The request must be a POST request, done with an user which has the 'access create translation sources endpoint' permissions. The basic auth method can be used to authenticate the request.