PhraseApp On-Premise In-Context-Editor

The In-Context-Editor setup for On-Premise is almost identical to the hosted setup. Simply include the JavaScript snippet in your application layout and make sure to provide the correct project ID. You can find the ID of your project in your project settings in Translation Center.

Also all occurences of <ON-PREMISE-URL> need to be replaced with the actual URL:

<script>
    window.PHRASEAPP_CONFIG = {
        projectId: 'YOUR_PROJECT_ID',
        baseUrl: "<ON_PREMISE_URL>",
        profileUrl: "<ON_PREMISE_URL>/settings/profile",
        apiBaseUrl: "<ON_PREMISE_URL>/api/v2",
        oauthEndpointUrl: "<ON_PREMISE_URL>/api/v2/authorizations/oauth",
        logoUrl: "<ON_PREMISE_URL>/assets/in-context-editor/2.0//logo.png",
        stylesheetUrl: "<ON_PREMISE_URL>/assets/in-context-editor/2.0/application.css",
        blankImageUrl: "<ON-PREMISE-URL>/assets/in-context-editor/2.0/blank.gif"
    };
    (function () {
        var phraseapp = document.createElement('script'); phraseapp.type = 'text/javascript'; phraseapp.async = true;
        phraseapp.src = ['http://', '<ON-PREMISE-URL>/assets/in-context-editor/2.0/app.js?', new Date().getTime()].join('');
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(phraseapp, s);
    })();</script>