Main UI Project for Algodex. This is a Next.js project bootstrapped with create-next-app
. Note that development
is the default branch.
yarn
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
How to add additional languages:
- Edit i18n.json to add additional supported locales under key "locales".
{ "locales": ["en", "es"], // < --- add new locales to this array ... }
- Copy the json files inside locales/en into another folder per locale
- JSON files are separated by section mostly
- Change the text to language of choice per json file, key names must stay the same
- In components/header/index.jsx, update localeToFlags with the appropriate locale key to flag country code. Country codes will display flags according to the react-country-flag library