src/basis/l10n.js
function setCulture(culture){
    if (!culture)
      return;

    if (currentCulture != culture)
    {
      if (cultureList.indexOf(culture) == -1)
      {
        /** @cut */ basis.dev.warn('basis.l10n.setCulture: culture `' + culture + '` not in the list, the culture doesn\'t changed');
        return;
      }

      currentCulture = culture;

      for (var i = 0, dictionary; dictionary = dictionaries[i]; i++)
        dictionary.syncValues();

      basisTokenPrototypeSet.call(resolveCulture, culture);
    }
  }
function setCulture(culture){
    if (!culture)
      return;

    if (currentCulture != culture)
    {
      if (cultureList.indexOf(culture) == -1)
      {
        /** @cut */ basis.dev.warn('basis.l10n.setCulture: culture `' + culture + '` not in the list, the culture doesn\'t changed');
        return;
      }

      currentCulture = culture;

      for (var i = 0, dictionary; dictionary = dictionaries[i]; i++)
        dictionary.syncValues();

      basisTokenPrototypeSet.call(resolveCulture, culture);
    }
  }
function setCulture ( culture ) { if ( ! culture ) return ; if ( currentCulture != culture ) { if ( cultureList . indexOf ( culture ) == - 1 ) { /** @cut */ basis . dev . warn ( 'basis.l10n.setCulture: culture `' + culture + '` not in the list, the culture doesn\'t changed' ) ; return ; } currentCulture = culture ; for ( var i = 0 , dictionary ; dictionary = dictionaries [ i ] ; i ++ ) dictionary . syncValues ( ) ; basisTokenPrototypeSet . call ( resolveCulture , culture ) ; } }
Set new culture.
@param {string} culture Culture name.
Set new culture .