til
{
    addCookies(key, value)
    {
        document.cookie = `${key}=${value}`;
    }
}

window.BlazorUtil = new BlazorUtil();</pre>
<p>Then, include it in the <code>_Host.cshtml</code>.</p>
<pre class="code" language="razor">...
&lt;body&gt;
    ...
    &lt;script src="~/js/BlazorUtil.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="_framework/blazor.server.js"&gt;&lt;/script&gt;
&lt;/body&gt;
...</pre>
<h3>Changing the language</h3>
<p>To change the language, you need to change the <c