

(function(globals) {

  var django = globals.django || (globals.django = {});

  
  django.pluralidx = function(n) {
    var v=(n != 1);
    if (typeof(v) == 'boolean') {
      return v ? 1 : 0;
    } else {
      return v;
    }
  };
  

  /* gettext library */

  django.catalog = django.catalog || {};
  
  var newcatalog = {
    "account.register.user_must_tick_both_boxes": "Almost there! Please confirm your subscription by ticking both boxes above.", 
    "feed.filters.apply_btn_text": "Apply filters", 
    "feed.filters.clear_btn_text": "Clear", 
    "feed.filters.mobile_back_btn_text": "Back", 
    "feed.filters.mobile_cancel_btn_text": "Cancel", 
    "feed.filters.mobile_clear_all_btn_text": "Clear all", 
    "feed.filters.mobile_has_quick_filters_open_filters_btn_text": "More filters", 
    "feed.filters.mobile_no_quick_filters_open_filters_btn_text": "Filters", 
    "feed.filters.mobile_open_filters_btn_text": "Refine products", 
    "feed_related_designers.title": "Similar searches", 
    "feeds.empty_message": "Sorry, no matching items found.", 
    "feeds.scroll_to_top_btn_text": "Scroll to top", 
    "follow_button.label.follow": "Follow", 
    "follow_button.label.following": "Following", 
    "fullscreen_gallery.at_retailer": "At {retailer_name}", 
    "fullscreen_gallery.buy_btn_text": "Buy", 
    "fullscreen_gallery.close_btn_text": "Close Gallery", 
    "fullscreen_gallery.see_new_items_by_designer": "See new in from <em><a {designer_link_props}>{designer_name}</a></em>", 
    "fullscreen_gallery.see_similar_items_btn_text": "See similar items", 
    "general.men": "Men", 
    "general.read_more": "Read more", 
    "general.shop_now": "Shop now", 
    "general.women": "Women", 
    "header.search.placeholder_for_men": "Search (e.g. \"Acne jeans\")", 
    "header.search.placeholder_for_women": "Search (e.g. \"Valentino dresses\")", 
    "in_stock_product.details": "Details", 
    "in_stock_product.last_checked_at": "Price last checked {interval}", 
    "in_stock_product.last_checked_at_tooltip": "Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on partners' sites at the time of purchase will apply to the purchase of this product.", 
    "in_stock_product.lyst_promotion_terms_link": "Lyst promotion terms apply", 
    "in_stock_product.or_separator": "or", 
    "in_stock_product.out_of_stock_size_request_link": "Don't see your size? We'll try to find it", 
    "in_stock_product.related": "Related", 
    "in_stock_product.save_for_later_btn.tooltip": "We'll tell you when this goes on sale", 
    "in_stock_product.size_guide_link": "View size guide", 
    "in_stock_product.sizes_heading": "Sizes in stock", 
    "lyst_type.designer": "Brand", 
    "oos_product.inventory_request_form_submit_btn_text": "Submit", 
    "oos_product.overlay.message_if_is_saved_product": "You'll be notified if it comes back in stock.", 
    "oos_product.overlay.product_is_sold_out_message": "We checked over 450 stores and this item is sold out.", 
    "paginated_carousel.next_btn_txt": "Next", 
    "paginated_carousel.prev_btn_txt": "Previous", 
    "product.buy_area.buy_now": "Buy now", 
    "product.recently_viewed.title_loading": "Your recently viewed products are loading...", 
    "product.related_products.show_me_more": "Show me more", 
    "product_card.info": "Info", 
    "product_card.more": "More", 
    "product_card.more_colors_available": "More colors available", 
    "product_card.not_available_in_your_country": "Not available in your country", 
    "product_card.sold_out": "Sold out", 
    "product_edit_button.label": "Edit product", 
    "product_image_gallery.invisible_text_for_accessibility.scroll_left": "Scroll left", 
    "product_image_gallery.invisible_text_for_accessibility.scroll_right": "Scroll right", 
    "product_image_gallery.invisible_text_for_accessibility.view_fullscreen": "View fullscreen", 
    "saved_search_button.initial_text": "Follow search", 
    "saved_search_button.saved_text": "Followed", 
    "search.end_of_results.title": "Not what you're looking for?", 
    "search.no_results_cannot_filter.advice_text": "You might want to double check for typos or try a different search term", 
    "search.no_results_cannot_filter.title": "Sorry", 
    "search.no_results_for_selected_filters_text": "No products match the selected filters.", 
    "ux_score.high_score_additional_question": "Thank you for your feedback. What is the best thing about using Lyst?", 
    "ux_score.low_score_additional_question": "Thank you for your feedback. What puts you off using Lyst again?", 
    "ux_score.max_score_label": "Yes, definitely", 
    "ux_score.mid_score_additional_question": "Thank you for your feedback. What could we change to make Lyst better for you?", 
    "ux_score.min_score_label": "No, definitely not", 
    "ux_score.submitted_subtitle": "Your input helps us to improve Lyst.", 
    "ux_score.submitted_title": "Thank you for your feedback.", 
    "ux_score.title": "Based on your experiences so far, would you be happy to use Lyst again?", 
    "ux_score_email.high_score_additional_question": "Thank you for your feedback. What makes your love the emails you receive from Lyst?", 
    "ux_score_email.low_score_additional_question": "Thank you for your feedback. What makes you hate the emails you receive from Lyst?", 
    "ux_score_email.max_score_label": "I love them", 
    "ux_score_email.mid_score_additional_question": "Thank you for your feedback. How could we improve the emails you receive from Lyst?", 
    "ux_score_email.min_score_label": "I hate them", 
    "ux_score_email.title": "How do you feel about the emails you receive from Lyst?"
  };
  for (var key in newcatalog) {
    django.catalog[key] = newcatalog[key];
  }
  

  if (!django.jsi18n_initialized) {
    django.gettext = function(msgid) {
      var value = django.catalog[msgid];
      if (typeof(value) == 'undefined') {
        return msgid;
      } else {
        return (typeof(value) == 'string') ? value : value[0];
      }
    };

    django.ngettext = function(singular, plural, count) {
      var value = django.catalog[singular];
      if (typeof(value) == 'undefined') {
        return (count == 1) ? singular : plural;
      } else {
        return value[django.pluralidx(count)];
      }
    };

    django.gettext_noop = function(msgid) { return msgid; };

    django.pgettext = function(context, msgid) {
      var value = django.gettext(context + '\x04' + msgid);
      if (value.indexOf('\x04') != -1) {
        value = msgid;
      }
      return value;
    };

    django.npgettext = function(context, singular, plural, count) {
      var value = django.ngettext(context + '\x04' + singular, context + '\x04' + plural, count);
      if (value.indexOf('\x04') != -1) {
        value = django.ngettext(singular, plural, count);
      }
      return value;
    };

    django.interpolate = function(fmt, obj, named) {
      if (named) {
        return fmt.replace(/%\(\w+\)s/g, function(match){return String(obj[match.slice(2,-2)])});
      } else {
        return fmt.replace(/%s/g, function(match){return String(obj.shift())});
      }
    };


    /* formatting library */

    django.formats = {
    "DATETIME_FORMAT": "N j, Y, P", 
    "DATETIME_INPUT_FORMATS": [
      "%Y-%m-%d %H:%M:%S", 
      "%Y-%m-%d %H:%M:%S.%f", 
      "%Y-%m-%d %H:%M", 
      "%Y-%m-%d", 
      "%m/%d/%Y %H:%M:%S", 
      "%m/%d/%Y %H:%M:%S.%f", 
      "%m/%d/%Y %H:%M", 
      "%m/%d/%Y", 
      "%m/%d/%y %H:%M:%S", 
      "%m/%d/%y %H:%M:%S.%f", 
      "%m/%d/%y %H:%M", 
      "%m/%d/%y"
    ], 
    "DATE_FORMAT": "N j, Y", 
    "DATE_INPUT_FORMATS": [
      "%Y-%m-%d", 
      "%m/%d/%Y", 
      "%m/%d/%y"
    ], 
    "DECIMAL_SEPARATOR": ".", 
    "FIRST_DAY_OF_WEEK": "0", 
    "MONTH_DAY_FORMAT": "F j", 
    "NUMBER_GROUPING": "3", 
    "SHORT_DATETIME_FORMAT": "m/d/Y P", 
    "SHORT_DATE_FORMAT": "m/d/Y", 
    "THOUSAND_SEPARATOR": ",", 
    "TIME_FORMAT": "P", 
    "TIME_INPUT_FORMATS": [
      "%H:%M:%S", 
      "%H:%M:%S.%f", 
      "%H:%M"
    ], 
    "YEAR_MONTH_FORMAT": "F Y"
  };

    django.get_format = function(format_type) {
      var value = django.formats[format_type];
      if (typeof(value) == 'undefined') {
        return format_type;
      } else {
        return value;
      }
    };

    /* add to global namespace */
    globals.pluralidx = django.pluralidx;
    globals.gettext = django.gettext;
    globals.ngettext = django.ngettext;
    globals.gettext_noop = django.gettext_noop;
    globals.pgettext = django.pgettext;
    globals.npgettext = django.npgettext;
    globals.interpolate = django.interpolate;
    globals.get_format = django.get_format;

    django.jsi18n_initialized = true;
  }

}(this));

