title: Method won't Update DIV
body: <pre><code>const locale = {
      fr: {
          login_page_title_welcome: "a",
  
          BKUE_status: "b",
          UNCN_status: "c",
          NNTA_status: "d",
      }
  };
  
  var l = locale["fr"];
  
  $.fn.locale=function(i) {
  
      this.html(l.i);
      this.attr('locale', ""+i+"");
  };
  </code></pre>
  
  <p>I have the <code>const</code> and I want to update an elements html and add an attribute using a custom method.</p>
  
  <pre><code>login_div_UNCN.locale('UNCN_status');
  </code></pre>
  
  <p>The <code>attribute</code> is added by the method. But the <code>html</code> is not updated.</p>
  
  <p>Am I doing something wrong?</p>