const chatBubble = {
	tRatingReason: "Rating reason:"
};
const cmsList = {
	tCaption: "CMS pages"
};
const facet = {
	tMore: "More",
	tAll: "All"
};
const latestSearches = {
	tCaption: "Last searches"
};
const merchandising = {
	tLoadMore: "Load more"
};
const popularSearches = {
	tCaption: "Popular searches"
};
const product = {
	tAddToCart: "Add to cart"
};
const productQueryPopup = {
	tTextFieldPlaceholder: "Enter your question here...",
	tAnswerError: "Uh O. There was a problem generating an answer. Please try again after some time.",
	tPopuptitle: "Ask a Question",
	tButtonText: "Ask Product AI",
	tFinePrint: "I'm an AI model. Sometimes, I may make mistakes. Please verify answers on the product page.",
	disclaimer: "This is an AI model. It can make mistakes.",
	tLoadingSorry: "I take a few extra seconds when answering the first question sometimes if I need to scan whole page.",
	tRateExperienceTitle: "Rate your experience",
	tRateExperienceText: "How was your experience using this Q&A tool?",
	tDataProtectionNotice: "We are compliant with data protection regulations. Visit our privacy policy to learn how we collect, keep, and process your private information in accordance with these laws."
};
const quicksearch = {
	tSearchResults: "Search results",
	tStartChat: "Start chat",
	tCategoriesCaption: "Categories",
	tTrendingCaption: "Trending",
	tPopularProductsTitle: "You may like",
	tLastClickedProductsCaption: "Recently viewed (%s)",
	tNoResultsFound: "No results found"
};
const searchField = {
	tPlaceholder: "Search for products",
	tSearchText: "Search"
};
const searchLandingPage = {
	tSearchTitle: "Searching term \"%s\"",
	tLoadMore: "Load more",
	tNoResultsFound: "No results found"
};
const sort = {
	tRelevance: "Relevance",
	tNameAsc: "Name ▲",
	tNameDesc: "Name ▼",
	tNewArrivalsAsc: "New arrivals ▲",
	tNewArrivalsDesc: "New arrivals ▼",
	tPriceAsc: "Price ▲",
	tPriceDesc: "Price ▼",
	tRatingAsc: "Rating ▲",
	tRatingDesc: "Rating ▼"
};
const en = {
	chatBubble: chatBubble,
	cmsList: cmsList,
	facet: facet,
	latestSearches: latestSearches,
	merchandising: merchandising,
	popularSearches: popularSearches,
	product: product,
	productQueryPopup: productQueryPopup,
	quicksearch: quicksearch,
	searchField: searchField,
	searchLandingPage: searchLandingPage,
	sort: sort
};

function getTranslation(key) {
  const keys = key.split(".");
  let value = window.klevu_ui_translations || en;
  for (const key of keys) {
    if (value.hasOwnProperty(key)) {
      // @ts-ignore
      value = value[key];
    }
    else {
      console.error(`Translation "${key}" not found`);
      return key;
    }
  }
  return value;
}

export { getTranslation as g };

//# sourceMappingURL=getTranslation-f7bfa845.js.map