noesya/osuny

View on GitHub
app/assets/javascripts/application/plugins/languagetool.js

Summary

Maintainability
A
0 mins
Test Coverage
/*global LTAssistant */
document.initLanguageTool = function () {
    'use strict';
    var contentApp = document.getElementById('app'),
        options = {
            localeCode: contentApp.dataset.languagetoolLocale,
            disableRuleIgnore: true,
            disableDictionaryAdd: true,
            user: {
                email: contentApp.dataset.languagetoolEmail,
                token: contentApp.dataset.languagetoolToken,
                premium: true
            },
            apiServerUrl: 'https://api.languagetoolplus.com/v2'
        };
    new LTAssistant(options);
};