Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.77 KB

README.md

File metadata and controls

36 lines (30 loc) · 1.77 KB

Phrase Maven Plugin

Build Status Maven Central

What is this?

This projects contains a maven plugin to download PhraseApp translations due the build process from PhraseApp API v2.

What you have to do to start it with maven?

Create the bean PhraseAppSyncTask to run this job scheduled lately.

Configure the maven plugin

<plugin>
    <groupId>com.free-now.maven.plugins</groupId>
    <artifactId>phrase-plugin</artifactId>
    <version>2.x.x</version>
    <configuration>
        <authToken>YOUR_AUTH_TOKEN(REQUIRED)</authToken>
        <projectId>YOUR_PROJECT_ID(REQUIRED)</projectId>
        <tags>YOUR_TAGS_IN_THE_PROJECT(OPTIONAL)</tagName>
        
        <generatedResourcesFolderName>YOUR_GENERATED_RESOURCE_FOLDER(default:generated-resources/)</generatedResourcesFolderName>
        <messagesFolderName>YOUR_MESSAGES_FOLDERNAME(default:messages/)</messagesFolderName>
        <messageFilePrefix>YOUR_MESSAGE_FILE_PREFIX(default:messages_)</messageFilePrefix>
        <messageFilePostfix>YOUR_MESSAGE_FILE_POSTFIX(default:.properties)</messageFilePostfix> 
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>phrase</goal>
            </goals>
        </execution>
    </executions>
</plugin>