You can visit the website at fire-ipc.vercel.app
- Create a new file in
src/pages
with the name of the page you want to add (e.g.Calendar.jsx
). - If you want css for the page, create a new file in
src/pages/css
with the name of the page you want to add (e.g.Calendar.css
). - Add the code to the new file.
- Add the page to the router array in
src/main.jsx
like so (Don't forget importing the page component)
{
'path': '/calendar',
'element': <Calendar />,
}
Your page should now be available in the website.
To add a new localization, you need to add a new key in both en
and bg
objects in src\localization\main.json
. For example, if you want to add a new key loginButtonText
, you should add it like this:
{
"en": {
"loginButtonText": "Log In"
},
"bg": {
"loginButtonText": "Влизане"
}
}
Then if you add the Text
component and telling it the key by displaying <Text word="loginButtonText" />
it should now display Влизане
or Log In
depending on the set language.