I want to require/ load a file conditionally based on a variable. I am stumped and not sure how I can do it.
Here is my current file:
function init() {
  return new Promise(resolve => {
    require({}, [
        'dojo/i18n!app/nls/app',
        //if (${lang} != "en") { `app/src/${lang}/culture` },
        'bridge/adobe/css/dribble.css',
        'builder/adobe/newcss/snip.css'
      ],
      function(f1, f2) {
        System.import('langUtils').then(langUtils => {
          langUtils.start(f1, f2);
          resolve();
        });
      });
  });
}
How I could require the file based on the condition (commented part in the code). Could someone please point me in the right direction.
Thank you.
 
     
    