{"id":13469588,"url":"https://github.com/amannn/next-intl","last_synced_at":"2025-05-14T08:05:16.505Z","repository":{"id":37478054,"uuid":"314533356","full_name":"amannn/next-intl","owner":"amannn","description":"🌐 Internationalization (i18n) for Next.js ","archived":false,"fork":false,"pushed_at":"2025-05-02T14:12:24.000Z","size":118970,"stargazers_count":3336,"open_issues_count":51,"forks_count":291,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-14T08:04:19.632Z","etag":null,"topics":["date-formatting","i18n","next","react"],"latest_commit_sha":null,"homepage":"https://next-intl.dev","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/amannn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"amannn"}},"created_at":"2020-11-20T11:24:11.000Z","updated_at":"2025-05-13T17:39:39.000Z","dependencies_parsed_at":"2023-09-26T17:15:42.757Z","dependency_job_id":"df764928-746b-4aab-b13b-7dfe8f65c0b3","html_url":"https://github.com/amannn/next-intl","commit_stats":{"total_commits":926,"total_committers":61,"mean_commits":"15.180327868852459","dds":"0.48056155507559395","last_synced_commit":"ae836db507e2ba130de7aa346442299f3df8feaf"},"previous_names":[],"tags_count":231,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amannn%2Fnext-intl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amannn%2Fnext-intl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amannn%2Fnext-intl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amannn%2Fnext-intl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amannn","download_url":"https://codeload.github.com/amannn/next-intl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101588,"owners_count":22014907,"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","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":["date-formatting","i18n","next","react"],"created_at":"2024-07-31T15:01:46.057Z","updated_at":"2025-05-14T08:05:16.486Z","avatar_url":"https://github.com/amannn.png","language":"TypeScript","funding_links":["https://github.com/sponsors/amannn"],"categories":["TypeScript","Features","Project Overview","react","📦 Libraries","Tools"],"sub_categories":["🧱 Technology Stack and Requirements","React / React Native"],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://next-intl.dev\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"media/logo-dark-mode.svg\"\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"media/logo.svg\"\u003e\n      \u003cimg alt=\"next-intl\" src=\"media/logo.svg\" width=\"600\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003e Internationalization (i18n) for Next.js\n\n## Features\n\nInternationalization (i18n) is an essential part of the user experience, therefore `next-intl` gives you all the parts you need to get language nuances right.\n\n- 🌟 **ICU message syntax**: Localize your messages with interpolation, cardinal \u0026 ordinal plurals, enum-based label selection and rich text.\n- 📅 **Dates, times \u0026 numbers**: Apply appropriate formatting without worrying about server/client differences like time zones.\n- ✅ **Type-safe**: Speed up development with autocompletion for message keys and catch typos early with compile-time checks.\n- 💡 **Hooks-based API**: Learn a single API that can be used across your code base to turn translations into plain strings or rich text.\n- 🚀 **Next.js-native and performance-obsessed**: App Router, Server Components, static rendering—pick the right tool for the right job, next-intl works everywhere.\n- ⚔️ **Internationalized routing**: Provide unique pathnames per language and optionally localize pathnames for search engine optimization.\n\n## What does it look like?\n\n```jsx\n// UserProfile.tsx\nimport {useTranslations} from 'next-intl';\n\nexport default function UserProfile({user}) {\n  const t = useTranslations('UserProfile');\n\n  return (\n    \u003csection\u003e\n      \u003ch1\u003e{t('title', {firstName: user.firstName})}\u003c/h1\u003e\n      \u003cp\u003e{t('membership', {memberSince: user.memberSince})}\u003c/p\u003e\n      \u003cp\u003e{t('followers', {count: user.numFollowers})}\u003c/p\u003e\n    \u003c/section\u003e\n  );\n}\n```\n\n```js\n// en.json\n{\n  \"UserProfile\": {\n    \"title\": \"{firstName}'s profile\",\n    \"membership\": \"Member since {memberSince, date, short}\",\n    \"followers\": \"{count, plural, ↵\n                    =0 {No followers yet} ↵\n                    =1 {One follower} ↵\n                    other {# followers} ↵\n                  }\"\n  }\n}\n```\n\n### [→ Read the docs](https://next-intl.dev)\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://next-intl.dev/redirect?href=https://crowdin.com\" target=\"_blank\"\u003e\n    \u003cimg width=\"350\" src=\"media/partner.svg\" alt=\"Crowdin logo\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003cp\u003eHosted on \u003ca href=\"https://vercel.com?utm_source=next-intl\u0026utm_campaign=oss\"\u003eVercel\u003c/a\u003e\u003c/p\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famannn%2Fnext-intl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famannn%2Fnext-intl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famannn%2Fnext-intl/lists"}