You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docusaurus/docs/what-is-included/internationalization.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,14 @@ The integration of `react-intl` into Next.js is made with [`@moxy/next-intl`](ht
17
17
18
18
## Adding a new locale
19
19
20
-
1. Add the locale to the `next.config.js` file.
20
+
1. Add the locale to the `intl/index.js` file.
21
21
2. Add the messages file to `intl/<locale>.json`.
22
22
23
23
## Removing this feature
24
24
25
25
If you are really sure internationalization is not needed in your project, you'll want to remove all the unnecessary `intl` related code. Be sure to follow these steps in order to clean your project properly:
26
26
27
27
1. Uninstall `react-intl`, `@moxy/next-intl`.
28
-
2. Remove the `intl` folder.
28
+
2. Remove the `intl` folder and update the files that were requiring that folder, removing any related localization code: `next.config.js`, `app/App.js` and `document/Document.js`;
29
29
3. Search globally for `react-intl` and `@moxy/next-intl` and remove the corresponding code across the project.
30
30
4. Update your unit tests if necessary so that they all pass!
0 commit comments