src/extensions/default/InAppNotifications/main.js
function _getVersionInfoUrl(localeParam) {

        var locale = localeParam || brackets.getLocale();

        if (locale.length > 2) {
            locale = locale.substring(0, 2);
        }

        return brackets.config.notification_info_url.replace("<locale>", locale);
    }
function _getVersionInfoUrl(localeParam) {

        var locale = localeParam || brackets.getLocale();

        if (locale.length > 2) {
            locale = locale.substring(0, 2);
        }

        return brackets.config.notification_info_url.replace("<locale>", locale);
    }
function _getVersionInfoUrl ( localeParam ) { var locale = localeParam || brackets . getLocale ( ) ; if ( locale . length > 2 ) { locale = locale . substring ( 0 , 2 ) ; } return brackets . config . notification_info_url . replace ( "<locale>" , locale ) ; }
Constructs notification info URL for XHR

@param {string=} localeParam - optional locale, defaults to 'brackets.getLocale()' when omitted.
@returns {string} the new notification info url
Constructs notification info URL for XHR