src/Translator.php
public function getWebUITranslations()
    {
        $TITLE_SAVE_CHANGES = $this->get($this->package . '::messages.title-save-changes');
        $TITLE_CANCEL_CHANGES = $this->get($this->package . '::messages.title-cancel-changes');
        $TITLE_TRANSLATE = $this->get($this->package . '::messages.title-translate');
        $TITLE_CONVERT_KEY = $this->get($this->package . '::messages.title-convert-key');
        $TITLE_GENERATE_PLURALS = $this->get($this->package . '::messages.title-generate-plurals');
        $TITLE_CLEAN_HTML_MARKDOWN = $this->get($this->package . '::messages.title-clean-html-markdown');
        $TITLE_CAPITALIZE = $this->get($this->package . '::messages.title-capitalize');
        $TITLE_LOWERCASE = $this->get($this->package . '::messages.title-lowercase');
        $TITLE_CAPITALIZE_FIRST_WORD = $this->get($this->package . '::messages.title-capitalize-first-word');
        $TITLE_SIMULATED_COPY = $this->get($this->package . '::messages.title-simulated-copy');
        $TITLE_SIMULATED_PASTE = $this->get($this->package . '::messages.title-simulated-paste');
        $TITLE_RESET_EDITOR = $this->get($this->package . '::messages.title-reset-editor');
        $TITLE_LOAD_LAST = $this->get($this->package . '::messages.title-load-last');

        return <<<HTML
<script>
var TITLE_SAVE_CHANGES = "$TITLE_SAVE_CHANGES";
var TITLE_CANCEL_CHANGES = "$TITLE_CANCEL_CHANGES";
var TITLE_TRANSLATE = "$TITLE_TRANSLATE";
var TITLE_CONVERT_KEY = "$TITLE_CONVERT_KEY";
var TITLE_GENERATE_PLURALS = "$TITLE_GENERATE_PLURALS";
var TITLE_CLEAN_HTML_MARKDOWN = "$TITLE_CLEAN_HTML_MARKDOWN";
var TITLE_CAPITALIZE = "$TITLE_CAPITALIZE";
var TITLE_LOWERCASE = "$TITLE_LOWERCASE";
var TITLE_CAPITALIZE_FIRST_WORD = "$TITLE_CAPITALIZE_FIRST_WORD";
var TITLE_SIMULATED_COPY = "$TITLE_SIMULATED_COPY";
var TITLE_SIMULATED_PASTE = "$TITLE_SIMULATED_PASTE";
var TITLE_RESET_EDITOR = "$TITLE_RESET_EDITOR";
var TITLE_LOAD_LAST = "$TITLE_LOAD_LAST";
</script>
HTML;
    }
public function getWebUITranslations()
    {
        $TITLE_SAVE_CHANGES = $this->get($this->package . '::messages.title-save-changes');
        $TITLE_CANCEL_CHANGES = $this->get($this->package . '::messages.title-cancel-changes');
        $TITLE_TRANSLATE = $this->get($this->package . '::messages.title-translate');
        $TITLE_CONVERT_KEY = $this->get($this->package . '::messages.title-convert-key');
        $TITLE_GENERATE_PLURALS = $this->get($this->package . '::messages.title-generate-plurals');
        $TITLE_CLEAN_HTML_MARKDOWN = $this->get($this->package . '::messages.title-clean-html-markdown');
        $TITLE_CAPITALIZE = $this->get($this->package . '::messages.title-capitalize');
        $TITLE_LOWERCASE = $this->get($this->package . '::messages.title-lowercase');
        $TITLE_CAPITALIZE_FIRST_WORD = $this->get($this->package . '::messages.title-capitalize-first-word');
        $TITLE_SIMULATED_COPY = $this->get($this->package . '::messages.title-simulated-copy');
        $TITLE_SIMULATED_PASTE = $this->get($this->package . '::messages.title-simulated-paste');
        $TITLE_RESET_EDITOR = $this->get($this->package . '::messages.title-reset-editor');
        $TITLE_LOAD_LAST = $this->get($this->package . '::messages.title-load-last');

        return <<<HTML
<script>
var TITLE_SAVE_CHANGES = "$TITLE_SAVE_CHANGES";
var TITLE_CANCEL_CHANGES = "$TITLE_CANCEL_CHANGES";
var TITLE_TRANSLATE = "$TITLE_TRANSLATE";
var TITLE_CONVERT_KEY = "$TITLE_CONVERT_KEY";
var TITLE_GENERATE_PLURALS = "$TITLE_GENERATE_PLURALS";
var TITLE_CLEAN_HTML_MARKDOWN = "$TITLE_CLEAN_HTML_MARKDOWN";
var TITLE_CAPITALIZE = "$TITLE_CAPITALIZE";
var TITLE_LOWERCASE = "$TITLE_LOWERCASE";
var TITLE_CAPITALIZE_FIRST_WORD = "$TITLE_CAPITALIZE_FIRST_WORD";
var TITLE_SIMULATED_COPY = "$TITLE_SIMULATED_COPY";
var TITLE_SIMULATED_PASTE = "$TITLE_SIMULATED_PASTE";
var TITLE_RESET_EDITOR = "$TITLE_RESET_EDITOR";
var TITLE_LOAD_LAST = "$TITLE_LOAD_LAST";
</script>
HTML;
    }
Output translation strings for WebUI used by JS

@return string