{"id":33319462,"url":"https://github.com/professor-correa/i18next-js","last_synced_at":"2026-05-14T11:41:57.559Z","repository":{"id":323728779,"uuid":"1092648337","full_name":"professor-correa/i18next-js","owner":"professor-correa","description":"Minimal React + Vite project demonstrating i18next internationalization with automatic language detection and GitHub Pages deployment.","archived":false,"fork":false,"pushed_at":"2025-11-11T20:09:10.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-11T20:31:48.379Z","etag":null,"topics":["i18n-react","i18next","vercel","vite","vitejs"],"latest_commit_sha":null,"homepage":"https://i18next-vite-js.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/professor-correa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-09T02:53:01.000Z","updated_at":"2025-11-11T20:09:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/professor-correa/i18next-js","commit_stats":null,"previous_names":["professor-correa/i18next-vite-js"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/professor-correa/i18next-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/professor-correa%2Fi18next-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/professor-correa%2Fi18next-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/professor-correa%2Fi18next-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/professor-correa%2Fi18next-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/professor-correa","download_url":"https://codeload.github.com/professor-correa/i18next-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/professor-correa%2Fi18next-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285319005,"owners_count":27151474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-19T02:00:05.673Z","response_time":65,"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","vercel","vite","vitejs"],"created_at":"2025-11-19T20:01:21.929Z","updated_at":"2025-11-19T20:03:07.018Z","avatar_url":"https://github.com/professor-correa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# i18next-vite-js\n\nA minimal project built with React and Vite that demonstrates how to use i18next for internationalization (i18n) with automatic language detection and GitHub Pages deployment.\n\n## Features\n\n- Built with React and Vite  \n- Multi-language support (English and Portuguese)  \n- Automatic language detection based on the browser  \n- Simple i18n setup using i18next-http-backend  \n- Automatic deployment using GitHub Actions and GitHub Pages  \n\n## Project Structure\n\n```\ni18next-vite-js/\n├── public/\n│   └── locales/\n│       ├── en/\n│       │   └── translation.json\n│       └── pt/\n│           └── translation.json\n├── src/\n│   ├── i18n.js\n│   ├── App.jsx\n│   └── main.jsx\n├── vite.config.js\n└── .github/\n    └── workflows/\n        └── deploy.yml\n```\n\n## How It Works\n\n- The project loads translations from `/public/locales/{{lng}}/translation.json`.  \n- The browser language is detected automatically.  \n- The user can also change the language manually in the interface.\n\nExample:\n\n```jsx\n\u003cbutton onClick={() =\u003e changeLanguage(\"pt\")}\u003ept\u003c/button\u003e\n\u003cbutton onClick={() =\u003e changeLanguage(\"en\")}\u003een\u003c/button\u003e\n```\n\n## Commands\n\n```bash\n# Install dependencies\nnpm install\n\n# Run development server\nnpm run dev\n\n# Build for production\nnpm run build\n```\n\n## Deployment\n\nThe project is automatically deployed to GitHub Pages using GitHub Actions.  \nEach push to the `main` branch triggers the build and publishes the site to:\n\n```\nhttps://professor-correa.github.io/i18next-vite-js/\n```\n\n## License\n\nMIT License  \nCreated by [Professor Corrêa](https://github.com/professor-correa)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofessor-correa%2Fi18next-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprofessor-correa%2Fi18next-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofessor-correa%2Fi18next-js/lists"}