and also suffering from the same problem of character limit during Post call as it 5 k only and my web page contains minimum of 100000 characters on it.
$(document).ready(function () {
$(document).on("change", "#ddlTranslateLanguage", function () {
debugger
var htmlString = $(".template-container").html();
$.ajax({
type: "POST",
headers: {
"X-HTTP-Method-Override": "GET"
},
data: { q: htmlString, target: "hi", source: "en", fields: "translations", key: "AIzaSyCnqpOsgFssI3wki_KJRmwlAXTWb_UtefA" },
success: function (response) {
debugger
$(".template-container").html(response.data.translations[0]["translatedText"])
Notifications.DisplayHelper("success", 'success');
},
error: function (error) {
debugger
Notifications.DisplayHelper("error", 'error');
}
});
});
});