Skip to content

Instantly share code, notes, and snippets.

@theodesp
Created December 7, 2019 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/9764efe87a95634bdc936765f2f42d4b to your computer and use it in GitHub Desktop.
Save theodesp/9764efe87a95634bdc936765f2f42d4b to your computer and use it in GitHub Desktop.
{% if app.environment == 'translation' %}
window.PHRASEAPP_CONFIG = {
projectId: "YOUR-PROJECT-ID"
};
(function() {
var phraseapp = document.createElement('script'); phraseapp.type = 'text/javascript'; phraseapp.async = true;
phraseapp.src = ['https://', 'phraseapp.com/assets/in-context-editor/2.0/app.js?', new Date().getTime()].join('');
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(phraseapp, s);
})();
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment