text: /**
   * i18n.js
   *
   * This will setup the i18n language files and locale data for your app.
   *
   *   IMPORTANT: This file is used by the internal build
   *   script `extract-intl`, and must use CommonJS module syntax
   *   You CANNOT use import/export in this file.
   */
  require('@formatjs/intl-pluralrules/dist/locale-data/en');
  require('@formatjs/intl-pluralrules/polyfill');
  require('@formatjs/intl-pluralrules/dist/locale-data/en'); // Add locale data for de
  require('@formatjs/intl-relativetimeformat/polyfill');
  require('@formatjs/intl-relativetimeformat/dist/locale-data/en'); // Add locale data for de
  
  const enTranslationMessages = require('./translations/enCA.json');
  
  const DEFAULT_LOCALE = 'en-CA';
  
  // prettier-ignore
  const appLocales = [
    'en-CA',
  ];
  
  const formatTranslationMessages = (locale, messages) => {
    const defaultFormattedMessages =
      locale !== DEFAULT_LOCALE
        ? formatTranslationMessages(DEFAULT_LOCALE, enTranslationMessages)
        : {};
    const flattenFormattedMessages = (formattedMessages, key) => {
      const formattedMessage =
        !messages[key] && locale !== DEFAULT_LOCALE
          ? defaultFormattedMessages[key]
          : messages[key];
      return Object.assign(formattedMessages, { [key]: formattedMessage });
    };
    return Object.keys(messages).reduce(flattenFormattedMessages, {});
  };
  
  const translationMessages = {
    'en-CA': formatTranslationMessages('en-CA', enTranslationMessages),
  };
  
  exports.appLocales = appLocales;
  exports.formatTranslationMessages = formatTranslationMessages;
  exports.translationMessages = translationMessages;
  exports.DEFAULT_LOCALE = DEFAULT_LOCALE;
  