Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dnenov authored Feb 12, 2024
1 parent 1cd62ae commit 662a93c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,20 @@ The project has sufficient assets to cover the base-case implementation during d

npm run build/bundle


## Localization
Localization is done via `react-intl` library. The current setup relies on the combination of these 2 elements:
- localization files stored inside the `\src\locales\` folder (add as many localization files as needed)
- adding new locales to the switch statement inside the `localization.js` file:
```
export const getMessagesForLocale = (locale) => {
switch(locale) {
case 'en':
return englishMessages;
default:
return englishMessages;
}
};
```

## 3rd party libraries and dependencies
The use of 3rd party libraries was kept to the bare minimum, where developing native elements would have resulted in exceptional time overhead.
Expand Down

0 comments on commit 662a93c

Please sign in to comment.