Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update react intl v3 - saga based translation files #2866

Closed

Commits on Aug 19, 2019

  1. * react-intl upgrade from 2.9.0 to 3.1.9

    * new formatjs/intl-relativetimeformat and intl-pluralrules dependencies as react-intl polyfills
    
    * changes in jest.config.js, webpack.base.babel.js, i18n.js and ToggleOption component according to react-intl upgrade guide
    
    * various snapshot updates due to internal react-intl changes
    
    Signed-off-by: mhatvan <markus_hatvan@aon.at>
    mhatvan committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    b50c2d9 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2019

  1. Merge branch 'dev' of https://github.com/react-boilerplate/react-boil…

    …erplate into chore/upgrade-react-intl-to-v3
    mhatvan committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    18c7683 View commit details
    Browse the repository at this point in the history
  2. Upgrade react-intl to v3 (react-boilerplate#2721)

    * react-intl upgrade from 3.1.9 to 3.3.0
    
    * switch from intl-pluralrules to @formatjs/intl-pluralrules
    
    * update i18n.js and i18n.md
    
    Signed-off-by: mhatvan <markus_hatvan@aon.at>
    mhatvan committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    b23f561 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2019

  1. Upgrade react-intl to v3 (react-boilerplate#2721)

    * change add-locale-data.hbs and intl-locale-data.hbs generation
    
    * add istanbul ignore to conditional polyfill imports
    
    * remove intl polyfill in app/app.js and polyfill-intl-locale.hbs
    
    * change documentation url for intl webpack transpilation
    
    Signed-off-by: mhatvan <markus_hatvan@aon.at>
    mhatvan committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    e66b52a View commit details
    Browse the repository at this point in the history
  2. Merge branch 'dev' into chore/upgrade-react-intl-to-v3

    Markus Hatvan authored Sep 23, 2019
    Configuration menu
    Copy the full SHA
    f53ec6c View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2019

  1. Configuration menu
    Copy the full SHA
    7fcfa8f View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2019

  1. re-add render() to app.js

    Signed-off-by: markushatvan <markus_hatvan@aon.at>
    markushatvan committed Sep 29, 2019
    Configuration menu
    Copy the full SHA
    867a52c View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2019

  1. change exclude regex in webpack.base.babel.js to work for unix and wi…

    …ndows environments
    
    Signed-off-by: markushatvan <markus_hatvan@aon.at>
    markushatvan committed Oct 2, 2019
    Configuration menu
    Copy the full SHA
    5955318 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2019

  1. Merge branch 'dev' of https://github.com/react-boilerplate/react-boil…

    …erplate into chore/upgrade-react-intl-to-v3
    
    Signed-off-by: mhatvan <markus_hatvan@aon.at>
    mhatvan committed Oct 28, 2019
    Configuration menu
    Copy the full SHA
    35128fe View commit details
    Browse the repository at this point in the history
  2. Merge branch 'chore/upgrade-react-intl-to-v3' of github.com:mhatvan/r…

    …eact-boilerplate into chore/upgrade-react-intl-to-v3
    mhatvan committed Oct 28, 2019
    Configuration menu
    Copy the full SHA
    c368d93 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2019

  1. Configuration menu
    Copy the full SHA
    772e4ce View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2019

  1. Merge branch 'dev' of https://github.com/react-boilerplate/react-boil…

    …erplate into chore/upgrade-react-intl-to-v3
    mhatvan committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    37ad6a7 View commit details
    Browse the repository at this point in the history
  2. * update react-intl and relevant dependencies to latest version

    * add full-icu package to fix locale data missing error in jest tests
    
    * add english locale data polyfill for Intl.Pluralrules and Intl.RelativeTimeFormat
    
    * change language generation to add locale data polyfills after english locale data
    
    Signed-off-by: mhatvan <markus_hatvan@aon.at>
    mhatvan committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    5a90578 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2020

  1. Configuration menu
    Copy the full SHA
    e0a1f9c View commit details
    Browse the repository at this point in the history
  2. Update react-intl and Language Provider

    Update react-intl to latest version.  Update LanguageProvider, app.js,
    and i18n.js in both app and template as described below.
    
    i18n.js
    
    - Despite the comment at the top of the file, i18n.js is not being used
      by the extract-intl script anymore, and can therefore use import/export
      syntax.
    
    - The translation files are now imported dynamically so that only the
      necessary translations are included. In the example app, this doesn't
      make much difference, but when there are many locales, loading json
      files individually will make a significant difference.
    
    - Create fetchMessages convenience function for importing/formatting
      translations.
    
    app.js
    
    - Update dynamic imports of Intl polyfills to @formatjs/intl-pluralrules
      and @formatjs/intl-relativetimeformat.
    
    - Remove translationMessages as they are now being fetched by the
      getTranslationMessages Saga.
    
    LanguageProvider
    
    - The CHANGE_LOCALE action now triggers the getTranslationMessages Saga.
      The Saga will use the fetchMessages function in i18n.js to fetch the
      appropriate messages file and then update the locale and messages.
    
    - If the messages are unable to be fetched, the saga will fall back to
      the default locale and messages.
    
    generators
    
    - Fix all language generators so that they work properly for new
      i18n.js/app.js implementaiton.
    Colby Adams committed Feb 23, 2020
    Configuration menu
    Copy the full SHA
    0ad9c42 View commit details
    Browse the repository at this point in the history
  3. Fix app.js template.

    - Previous commit failed because the app.js template was not formatted
    properly
    Colby Adams committed Feb 23, 2020
    Configuration menu
    Copy the full SHA
    c00081e View commit details
    Browse the repository at this point in the history