This project contains Spring Boot starter which is created to simplify integration of PhraseApp In-Context Editor into your Spring Boot application.
The starter currently supports PhraseApp API v.2.
Inspired by phraseapp-spring-example.
It is assumed that you have already finished preparing you translation keys and a PhraseApp project is already created, if not please look at How to get started with PhraseApp
runtime 'com.epages:phraseapp-spring-boot-starter:0.0.1'
<dependency>
<groupId>com.epages</groupId>
<artifactId>phraseapp-spring-boot-starter</artifactId>
<version>0.0.1</version>
<type>provided</type>
</dependency>
PhraseApp project id should be provided via the configuration property.
phraseapp:
project-id: 123456789012345678901234567890ab
PhraseApp In-Context Editor is enabled for you by default, but, most probably, you might not want it being enabled for you in the production environment. So please take care that corresponding property is disabled wherever it is necessary.
phraseapp:
incontext-editor-enabled: false
<head>
<script th:utext="${@phraseAppJavascriptHeader.getHeader()}"></script>
</head>