i18n:transform
Full name:
io.wcm.maven.plugins:i18n-maven-plugin:1.3.1-SNAPSHOT:transform
Description:
Transform i18n resources in Java Properties, JSON or XML file format to Sling i18n Messages JSON or XML format.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
generate-resources
.
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<generatedResourcesFolderPath> |
String |
- |
No description. Default: generated-i18n-resources |
<outputFormat> |
String |
- |
Output format. Possible values:
Default: JSON |
<source> |
String |
- |
Source path containing the i18n source .properties or .xml files. Default: ${basedir}/src/main/resources/i18n |
<target> |
String |
- |
Relative target path for the generated resources. Default: SLING-INF/app-root/i18n |
Parameter Details
<generatedResourcesFolderPath>
No description.
- Type:
java.lang.String
- Required:
No
- Default:
generated-i18n-resources
<outputFormat>
Output format. Possible values:
JSON
: Sling Message format serialized as JSON.JSON_PROPERTIES
: Flat list of key/value pairs in JSON format.XML
: Sling Message format serialized as JCR XML.PROPERTIES
: Flat list of key/value pairs in Java Properties format.
- Type:
java.lang.String
- Required:
No
- Default:
JSON
<source>
Source path containing the i18n source .properties or .xml files.
- Type:
java.lang.String
- Required:
No
- Default:
${basedir}/src/main/resources/i18n
<target>
Relative target path for the generated resources.
- Type:
java.lang.String
- Required:
No
- Default:
SLING-INF/app-root/i18n