Skip to content

Commit

Permalink
Merge pull request #1469 from sharetribe/fix-remove-unnecessary-langu…
Browse files Browse the repository at this point in the history
…age-import

Fix remove unnecessary language import
  • Loading branch information
Gnito authored Sep 7, 2021
2 parents 8a52bfc + cd9e6e4 commit 6686fc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ way to update this template, but currently, we follow a pattern:
---

## Upcoming version 2021-XX-XX

- [fix] Remove unnecessary language import: fr.json
[#1469](https://github.com/sharetribe/ftw-daily/pull/1469)
- [fix] Font-size for Poppins font was too big for Stripe Elements on small screens.
[#1465](https://github.com/sharetribe/ftw-daily/pull/1465)
- [change] Updates to some of the libraries. React Intl had a breaking change v3 -> v5.
Expand Down
6 changes: 4 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ import defaultMessages from './translations/en.json';
// e.g. for French: import 'moment/locale/fr';

// Step 3:
// If you are using a non-english locale, point `messagesInLocale` to correct .json file
import messagesInLocale from './translations/fr.json';
// If you are using a non-english locale, point `messagesInLocale` to correct .json file.
// Remove "const messagesInLocale" and add import for the correct locale:
// import messagesInLocale from './translations/fr.json';
const messagesInLocale = {};

// If translation key is missing from `messagesInLocale` (e.g. fr.json),
// corresponding key will be added to messages from `defaultMessages` (en.json)
Expand Down

0 comments on commit 6686fc4

Please sign in to comment.