title: How to change the SAPUI5 language?
body: <p>I am searching for a way to change the language used in SAPUI5 "completely".
  To change the language using a property file seems not to be a problem, a working example:</p>
  
  <pre><code>new sap.m.Switch({
      state : false,
      customTextOn : "EN",
      customTextOff : "DE",
      visible : true,
      change : [ function(oEvent) {
          var control = oEvent.getSource();
          var state = control.getState();
          if (state) {
              i18nModel = new sap.ui.model.resource.ResourceModel({bundleUrl:"i18n/i18n.properties", bundleLocale:"en"});
              sap.ui.getCore().setModel(i18nModel, "i18n");
          } else {
              i18nModel = new sap.ui.model.resource.ResourceModel({bundleUrl:"i18n/i18n.properties", bundleLocale:"de"});
              sap.ui.getCore().setModel(i18nModel, "i18n");
          }
      }, this ]
  }),
  </code></pre>
  
  <p>Pressing the switch button will immediately change the text bound to "i18n>" model.
  The problem is, that I also have text from metadata (especially lables) from the oData service.</p>
  
  <p>A binding path could look like this: </p>
  
  <pre><code>{modelName&gt;/#Entity/Attribute/@sap:label} 
  </code></pre>
  
  <p>The language for this is defined during first logon. Now I am searching for a way to reload metadata (and also data) after a language change.</p>
  
  <p>Is there any way to do so? Or is the only way to logout and login again?</p>