export default {
  // Full example
  'Simple *translations* in React <ReactLogo>': {
    en: 'Simple *translations* in React <ReactLogo>',
    fr: 'Des *traductions* simples dans React <ReactLogo>',
  },

  // Static text
  'Hi World!': {
    en: 'Hi World!',
    fr: 'Salut mon pote!',
  },

  // Templated text
  'Hi {firstName}!': {
    en: 'Hi {firstName}!',
    fr: 'Salut {firstName}!',
  },
  'Enter your age {firstName}': {
    en: 'Enter your age {firstName}',
    fr: 'entrez votre âge {firstName}',
  },

  // Dynamically templated text
  'There are {catsCount} cats in this room.': {
    en({ catsCount }) {
      if (catsCount === 1) {
        return 'There is {catsCount} cat in this room.'
      }
      return 'There are {catsCount} cats in this room.'
    },
    fr({ catsCount }) {
      if (catsCount === 1) {
        return 'Il y a {catsCount} chat dans cette pièce.'
      }
      return 'Il y a {catsCount} chats dans cette pièce.'
    },
  },
  'This is a {fruit}': {
    en({ fruit }) {
      if (/^[aeiou]/.test(fruit)) {
        return 'This is an {fruit}'
      }
      return 'This is a {fruit}'
    },
    fr({ fruit }) {
      return 'TBD'
    },
  },

  // Styled text
  'Hi *World*!': {
    en: 'Hi *World*!',
    fr: 'Salut mon *pote*!',
  },
  'Hi *{firstName}*!': {
    en: 'Hi *{firstName}*!',
    fr: 'Salut *{firstName}*!',
  },

  // Component within text
  'Tap the <StarIcon> to add': {
    en: 'Tap the <StarIcon> to add',
    fr: 'Appuyez sur la <StarIcon> pour ajouter',
  },
  'I was born in <MonthName>': {
    en: 'I was born in <MonthName>',
    fr: 'Je suis né en <MonthName>',
  },
  August: {
    en: 'August',
    fr: 'août',
  },
}
