'Laravel - How to add Translation Strings in javascript?

How do I add Translation Strings to value.name?

var appendLi = '<div class="form-group">';
    appendLi += '<label>'+value.name+'</label>';
    appendLi += '</div>';

I tried to do it like this but it shows an error:

appendLi += '<label>'+__(value.name)+'</label>';


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source