/* globals Twitch, i18n, SiteOptions */

import { JTV_USER_PICTURES_404_USER_150X150_URL } from 'web-client/utilities/urls/static-cdn';

const DEFAULT_LANGUAGE_FALLBACK = 'en';

export const libraries = {};

export function configure() {
  libraries.i18n = i18n;
  libraries.userLanguage = Twitch.receivedLanguage || DEFAULT_LANGUAGE_FALLBACK;
  libraries.defaultAvatar = SiteOptions.default_avatar_url || JTV_USER_PICTURES_404_USER_150X150_URL;
}
