This repository provides a simple live demo showcasing the usage of @jereztech/i18n-react and @jereztech/react-elements in a React application.
- Implements internationalization (i18n) using
@jereztech/i18n-react - Utilizes reusable UI components from
@jereztech/react-elements - Demonstrates a basic store interface with localized content
Ensure you have the following installed:
Clone the repository and install dependencies:
git clone https://github.com/jereztech/store-react-demo.git
cd store-react-demo
pnpm install # or npm installTo start the development server, run:
pnpm dev # or npm run devThis will start the application at http://localhost:3000/.
This project integrates @jereztech/i18n-react for managing translations.
Example usage:
import { useI18n } from "@jereztech/i18n-react";
export default function Footer() {
const { t } = useI18n('Navigation');
return (
<footer className="container">
<p className="float-end">
<a href="#">{t('back-to-top')}</a>
</p>
</footer>
)
}This project is licensed under the GNU General Public License v3.0
Made with ❤️ by Jerez Tech