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: exercise/12-i18n/README.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# 12. I18n
2
2
3
3
To make our project international, we are going to use react-i18n.
4
-
To do so we are leveraging the work of [Sergio Xalambrí](https://github.com/sergiodxa)an heavy contributor to remix which created the [remix-18next](https://github.com/sergiodxa/remix-i18next) package.
4
+
To do so we are leveraging the work of [Sergio Xalambrí](https://github.com/sergiodxa)a heavy contributor to remix who created the [remix-18next](https://github.com/sergiodxa/remix-i18next) package.
5
5
6
6
## package install
7
7
@@ -73,8 +73,6 @@ export default i18next;
73
73
74
74
With this basic configuration we now need to add the I18nextProvider to both the `entry.client.tsx` and `entry.server.tsx`.
75
75
76
-
Go to slide for explaination about those 2 files.
77
-
78
76
Copy those files from the directory.
79
77
80
78
Lastly, we need to load know the current local and save it. For that we are going to add a loader in our `./app/root.tsx`. This loader will check for the cookie and set it to the correct locale.
Copy file name to clipboardexpand all lines: final/12-i18n/progressive-pizza/README.md
+7-3
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
# Welcome to Remix + Vite!
1
+
# Welcome to Remix!
2
2
3
-
📖 See the [Remix docs](https://remix.run/docs) and the [Remix Vite docs](https://remix.run/docs/en/main/guides/vite) for details on supported features.
3
+
- 📖 [Remix docs](https://remix.run/docs)
4
4
5
5
## Development
6
6
7
-
Run the Vite dev server:
7
+
Run the dev server:
8
8
9
9
```shellscript
10
10
npm run dev
@@ -34,3 +34,7 @@ Make sure to deploy the output of `npm run build`
34
34
35
35
-`build/server`
36
36
-`build/client`
37
+
38
+
## Styling
39
+
40
+
This template comes with [Tailwind CSS](https://tailwindcss.com/) already configured for a simple default starting experience. You can use whatever css framework you prefer. See the [Vite docs on css](https://vitejs.dev/guide/features.html#css) for more information.
0 commit comments