{"id":22019180,"url":"https://github.com/iamdevvalecha/with-lingui","last_synced_at":"2026-04-11T14:02:00.007Z","repository":{"id":104489464,"uuid":"357993899","full_name":"iamdevvalecha/with-lingui","owner":"iamdevvalecha","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-14T17:49:43.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T16:24:00.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/iamdevvalecha.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}},"created_at":"2021-04-14T17:49:35.000Z","updated_at":"2021-04-14T17:49:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"5654f10b-96be-4df8-a11b-ae6e648403f2","html_url":"https://github.com/iamdevvalecha/with-lingui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamdevvalecha/with-lingui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdevvalecha%2Fwith-lingui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdevvalecha%2Fwith-lingui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdevvalecha%2Fwith-lingui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdevvalecha%2Fwith-lingui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamdevvalecha","download_url":"https://codeload.github.com/iamdevvalecha/with-lingui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdevvalecha%2Fwith-lingui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31682953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-30T05:16:12.780Z","updated_at":"2026-04-11T14:02:00.001Z","avatar_url":"https://github.com/iamdevvalecha.png","language":"JavaScript","readme":"# With Lingui example\n\nThis example shows a way to use [lingui.js](https://lingui.js.org) with next.js.\n\nIt adds a webpack loader for the messages to avoid having to manually compile while developing as well as adds the compile step to the `next build` script for production builds.\n\nThe example also uses a Higher order Component which can be added to all pages which will be translated and that checks for a `?lang` query string switch the language. Next.js will dynamically load in the messages for the locale when navigating using a Next.js `\u003cLink /\u003e` component.\n\n## Deploy your own\n\nDeploy the example using [Vercel](https://vercel.com?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=next-example):\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-lingui\u0026project-name=with-lingui\u0026repository-name=with-lingui)\n\n## How to use\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:\n\n```bash\nnpx create-next-app --example with-lingui with-lingui-app\n# or\nyarn create next-app --example with-lingui with-lingui-app\n```\n\nDeploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).\n\n### How to add more translated strings\n\nTo add new strings use the [react component](https://lingui.js.org/tutorials/react-patterns.html#common-i18n-patterns-in-react) `\u003cTrans /\u003e` and then run `yarn export` to export the messages into `locale/{language}/messages.po`.\n\n### How to add another language\n\nTo add another language simply run `yarn add-locale \u003clocale ...\u003e` and it will create a new locale in the `locale/messages/` directory.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamdevvalecha%2Fwith-lingui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamdevvalecha%2Fwith-lingui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamdevvalecha%2Fwith-lingui/lists"}