{"id":21229010,"url":"https://github.com/othmanekahtal/react-i18n-practical-guide","last_synced_at":"2026-07-10T18:31:24.979Z","repository":{"id":263515669,"uuid":"888437488","full_name":"othmanekahtal/react-i18n-practical-guide","owner":"othmanekahtal","description":"📚 Complete practical guide for implementing multilingual support in React applications with real-world examples and best practices.","archived":false,"fork":false,"pushed_at":"2024-12-12T12:38:07.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T01:40:20.875Z","etag":null,"topics":["i18n-react","i18next"],"latest_commit_sha":null,"homepage":"https://i18n-practical.netlify.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/othmanekahtal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-14T11:57:31.000Z","updated_at":"2025-06-09T18:47:01.000Z","dependencies_parsed_at":"2024-11-19T01:19:53.728Z","dependency_job_id":"625f7e8c-ba26-48fb-84cb-d3429fa20b15","html_url":"https://github.com/othmanekahtal/react-i18n-practical-guide","commit_stats":null,"previous_names":["othmanekahtal/react-i18n-practical-guide"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/othmanekahtal/react-i18n-practical-guide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othmanekahtal%2Freact-i18n-practical-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othmanekahtal%2Freact-i18n-practical-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othmanekahtal%2Freact-i18n-practical-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othmanekahtal%2Freact-i18n-practical-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/othmanekahtal","download_url":"https://codeload.github.com/othmanekahtal/react-i18n-practical-guide/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othmanekahtal%2Freact-i18n-practical-guide/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35339931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["i18n-react","i18next"],"created_at":"2024-11-20T23:24:02.596Z","updated_at":"2026-07-10T18:31:24.950Z","avatar_url":"https://github.com/othmanekahtal.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React i18n Practical Guide\n\nA comprehensive guide and working example for implementing internationalization (i18n) and localization in React applications. Features step-by-step implementations of language switching, number/date formatting, dynamic translations, and RTL support using react-i18next and Tailwind CSS.\n\n## Features\n\n- 🌐 Multiple language support (English, Arabic)\n- 🔄 RTL layout support\n- 💅 Tailwind CSS integration\n- ⚡ Performance optimization techniques\n- 🧪 Form validation with Zod\n- 📦 Organized translation structure\n\n## Demo Branches\n\nEach feature is implemented in its own branch for easier learning:\n\n- `base`: Basic i18next configuration\n- `rtl-support`: RTL layout implementation\n- `performance`: Performance optimization\n- `persistence-events`: Persisting the preference language\n- `formatting`: Formatting dates and numbers\n- `namespaces`: Implementing namespaces\n\n## Tech Stack\n\n- React\n- TypeScript\n- Tailwind CSS\n- i18next\n- react-i18next\n- Zod\n- react-hook-form\n\n## Getting Started\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/othmanekahtal/react-i18n-practical-guide.git\n```\n\n2. Install dependencies:\n\n```bash\npnpm install\n```\n\n3. Run the development server:\n\n```bash\npnpm dev\n```\n\n## Project Structure\n\n```\nsrc/\n  ├── locales/         # Translation files\n  │   ├── en/\n  │   │   ├── common.json\n  │   │   ├── auth.json\n  │   │   └── validation.json\n  │   └── ar/\n  ├── components/      # React components\n  ├── i18n.ts         # i18next configuration\n  └── App.tsx         # Main application\n```\n\n## VSCode Setup\n\nThis project includes configuration for the i18n Ally extension. To use it:\n\n1. Install the \"i18n Ally\" extension\n2. English is configured as the source language\n3. Enjoy real-time translation previews and management\n\n## Contributing\n\nFeel free to contribute to this project. Any contributions you make are greatly appreciated.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n## Contact\n\nx - [@othmane_kahtal](https://x.com/othmane_kahtal)\n\nLinkedin - [@othmane kahtal](https://www.linkedin.com/in/othmanekahtal/)\n\nhashnode - [@othmane kahtal](https://hashnode.com/@othmanekahtal)\n\nBlog Link: [https://blog.othmane.me/building-multilingual-react-apps-practical-guide-to-i18next-and-rtl-support](https://blog.othmane.me/building-multilingual-react-apps-practical-guide-to-i18next-and-rtl-support)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothmanekahtal%2Freact-i18n-practical-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fothmanekahtal%2Freact-i18n-practical-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothmanekahtal%2Freact-i18n-practical-guide/lists"}