export const m = {
  help_lbry: 'help_lbry',
  save_crypto: 'save_crypto',
  go_home: 'go_home',
  og_description: 'og_description',
  landing_subtitle: 'landing_subtitle',
  landing_action: 'landing_action',
  summary_title: 'summary_title',
  summary_subtitle: 'summary_subtitle',
  video_subtitle: 'video_subtitle',
  video_link: 'video_link',
  p1_a: 'p1_a',
  p1_b: 'p1_b',
  p2_a: 'p2_a',
  p2_b: 'p2_b',
  share_story_title: 'share_story_title',
  share_story_subtitle: 'share_story_subtitle',
  petition_title: 'petition_title',
  petition_subtitle: 'petition_subtitle',
  petition_link: 'petition_link',
  read_more_title: 'read_more_title',
  read_more_subtitle: 'read_more_subtitle',
  read_more_link: 'read_more_link',
  press: 'press',
  email_title: 'email_title',
  email_subtitle: 'email_subtitle',
  email_input_label: 'email_input_label',
  email_input_button: 'email_input_button',
  email_input_button_loading: 'email_input_button_loading',
  email_success: 'email_success',
  email_error: 'email_error',
  try_lbry_title: 'try_lbry_title',
  try_lbry_subtitle: 'try_lbry_subtitle',
  try_lbry_desktop_link: 'try_lbry_desktop_link',
  try_lbry_desktop_help: 'try_lbry_desktop_help',
  try_odysee_help: 'try_odysee_help',
  contact_title: 'contact_title',
  contact_press: 'contact_press',
  contact_legal: 'contact_legal',
  contact_other_email: 'contact_other_email',
  contact_discord: 'contact_discord',
};

const en = {
  faq: 'VIEW FAQ',
  help_lbry: 'HELP LBRY',
  save_crypto: 'SAVE CRYPTO',
  go_home: 'Go Home',
  og_description:
    'The SEC doesn’t understand blockchain. The claims made in SEC vs. LBRY would destroy the United States cryptocurrency industry.',

  landing_subtitle:
    'The SEC doesn’t understand blockchain. The claims made in SEC vs. LBRY would destroy the United States cryptocurrency industry.',
  landing_action: 'Help us educate the SEC',

  summary_title: 'What’s the big deal?',
  summary_subtitle:
    'The entire blockchain industry is at risk in the United States. Big tech and Wall St. would have more power and many people could lose their jobs.',

  video_subtitle:
    'Warning / Enticement: this video is more entertainment than education, for the facts read the FAQ.',

  video_link: 'Case Guide & FAQ',

  p1_a:
    'The SEC is advancing an aggressive and disastrous new standard that would make almost all blockchain tokens securities.',
  p1_b:
    'Classifying all actively-developed blockchain tokens as securities will be a bureaucratic nightmare for United States residents and businesses operating in the US.',

  p2_a:
    'Under this new standard, almost any token is a security, including the previously safe Ethereum. The nature of technology is that it is never "finished".',
  p2_b:
    'This change will make it much harder for startups to form new blockchain companies, cause massive job loss, and stunt the development of a critical new technology. All the while, big tech and Wall St. prosper!',

  share_story_title: 'Share this story',
  share_story_subtitle: 'Post to social media to spread awareness.',

  twitter_title: 'What are people saying?',

  petition_title: 'Sign the petition',
  petition_subtitle:
    'Tell the SEC that cryptocurrency must remain legal and free.',
  petition_link: 'Add your signature',

  read_more_title: 'Read more',
  read_more_subtitle: 'Read our case guide and FAQ',
  read_more_link: 'here',

  press: 'Press',

  email_title: 'Stay Informed',
  email_subtitle: 'We will keep you up to date with the latest on this case.',
  email_input_label: 'Email',
  email_input_button: 'Submit',
  email_input_button_loading: 'Submitting',
  email_success: 'Thank you. We will keep you in the loop.',
  email_error: 'Sorry, there was an error. Please try again.',

  try_lbry_title: 'Try LBRY',
  try_lbry_subtitle:
    'If the government and big tech want it gone, it must be good.',
  try_lbry_desktop_link: 'LBRY Desktop',
  try_lbry_desktop_help: 'decentralized and open-source',
  try_odysee_help: 'easiest to use',

  contact_title: 'Contact us',
  contact_press: 'Press inquiries',
  contact_legal: 'Legal',
  contact_other_email: 'Other email',
  contact_discord: 'Discord (not run by LBRY Inc)',
};

const es = {
  faq: 'VER PREGUNTAS FRECUENTES',
  help_lbry: 'AYUDA A LBRY.',
  save_crypto: 'SALVA LAS CRIPTOMONEDAS',
  go_home: 'Ir a Inicio',
  og_description:
    'La SEC no comprende blockchain. Las afirmaciones hechas en SEC vs LBRY destruirían la industria de las criptomonedas en los Estados Unidos.',

  landing_subtitle:
    'La SEC no comprende blockchain. Las afirmaciones hechas en SEC vs LBRY destruirían la industria de las criptomonedas en los Estados Unidos.',
  landing_action: 'Ayúdanos a educar a la SEC',

  summary_title: '¿Cuál es el problema?',
  summary_subtitle:
    'Toda la industria blockchain está en riesgo en los Estados Unidos. Las grandes tecnologías y Wall St. tendrían más poder y muchas personas podrían perder sus trabajos.',

  video_subtitle:
    'Advertencia/Tentativo: este video es más entretenimiento que educación, para los hechos, lea las preguntas frecuentes.',

  video_link: 'Guía de casos y preguntas frecuentes',

  p1_a:
    'La SEC está avanzando en un nuevo estándar agresivo y desastroso que convertiría a casi todos los tokens de blockchain en valores.',
  p1_b:
    'Clasificar todos los tokens de blockchain desarrollados activamente como valores será una pesadilla burocrática para los residentes y las empresas de los Estados Unidos que operan en los EE. UU.',

  p2_a:
    'Bajo este nuevo estándar, casi cualquier token es un valor, incluido Ethereum, que antes era security. La naturaleza de la tecnología es que nunca está "terminada".',
  p2_b:
    'Este cambio hará que sea mucho más difícil para las nuevas empresas formar nuevas empresas blockchain, provocará una pérdida masiva de puestos de trabajo y obstaculizará el desarrollo de una nueva tecnología crítica. ¡Mientras tanto, la gran tecnología y Wall St. prosperan!',

  share_story_title: 'Comparte esta historia',
  share_story_subtitle:
    'Publica en las redes sociales para difundir el conocimiento.',

  twitter_title: '¿Qué dice la gente?',

  petition_title: 'Firma la petición',
  petition_subtitle:
    'Dígale a la SEC que la criptomoneda debe seguir siendo legal y gratuita.',
  petition_link: 'Agrega tu firma',

  read_more_title: 'Lee mas',
  read_more_subtitle: 'Lea nuestra guía de casos y preguntas frecuentes',
  read_more_link: 'aquí',

  email_title: 'Mantente informado',
  email_subtitle:
    'Le mantendremos informado de las últimas novedades sobre este caso.',
  email_input_label: 'Correo electrónico',
  email_input_button: 'Enviar',
  email_input_button_loading: 'Enviando',
  email_success: 'Gracias. Te mantendremos informado.',
  email_error: 'Lo sentimos, ha habido un error. Inténtalo de nuevo.',

  try_lbry_title: 'Prueba LBRY',
  try_lbry_subtitle:
    'Si el gobierno y la gran tecnología quieren que se vaya, debe ser bueno.',
  try_lbry_desktop_link: 'LBRY Desktop',
  try_lbry_desktop_help: 'descentralizado y de código abierto',
  try_odysee_help: 'más fácil de usar',

  contact_title: 'Contacta con nosotros',
  contact_press: 'preguntas de la prensa',
  contact_legal: 'Legal',
  contact_other_email: 'Otro correo electrónico',
  contact_discord: 'Discord (no dirigido por LBRY Inc)',
};

const languages = {
  es,
};

export function t(string, lang) {
  let val;

  if (languages[lang]) {
    val = languages[lang][string];
  }

  if (val) {
    return val;
  } else {
    return en[string];
  }
}