{"id":21404759,"url":"https://github.com/fakundo/next-i18next-ext","last_synced_at":"2026-05-11T16:37:57.966Z","repository":{"id":74039903,"uuid":"545111546","full_name":"fakundo/next-i18next-ext","owner":"fakundo","description":"Next integration with i18next","archived":false,"fork":false,"pushed_at":"2026-02-09T20:41:16.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-10T00:05:22.284Z","etag":null,"topics":["i18n","i18next","internationalization","next","next-i18next"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/fakundo.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":"2022-10-03T20:00:33.000Z","updated_at":"2026-02-09T20:41:20.000Z","dependencies_parsed_at":"2025-01-23T03:40:35.237Z","dependency_job_id":"7fd69c53-4fc7-414b-9896-086b9c8d3472","html_url":"https://github.com/fakundo/next-i18next-ext","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fakundo/next-i18next-ext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakundo%2Fnext-i18next-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakundo%2Fnext-i18next-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakundo%2Fnext-i18next-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakundo%2Fnext-i18next-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fakundo","download_url":"https://codeload.github.com/fakundo/next-i18next-ext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakundo%2Fnext-i18next-ext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32903814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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","i18next","internationalization","next","next-i18next"],"created_at":"2024-11-22T16:17:56.910Z","updated_at":"2026-05-11T16:37:57.946Z","avatar_url":"https://github.com/fakundo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-i18next-ext\n\n[![npm](https://img.shields.io/npm/v/next-i18next-ext.svg)](https://www.npmjs.com/package/next-i18next-ext)\n\nExtended [next-i18next](https://github.com/i18next/next-i18next) which allows you to use translations shared between pages and load them once. SSG and SSR work great too.\n\n## Installation\n  \n```\nnpm i next-i18next-ext\n```\n\n## Usage\n\n1. Configure your [custom Document](https://nextjs.org/docs/advanced-features/custom-document) to provide shared translations for the App\n\n```js\nimport { createGetInitialProps } from 'next-i18next-ext/server';\n\nexport default class _Document extends Document {\n  static getInitialProps = createGetInitialProps(['common']);\n\n  render() {\n    ...\n  }\n}\n```\n\n\n### Steps above are the same as for `next-i18next`\n\n\n2. Configure your [custom App](https://nextjs.org/docs/advanced-features/custom-app)\n\n```js\nimport { appWithTranslation } from 'next-i18next-ext';\n\nconst _App = ({ Component, pageProps }) =\u003e {\n  return \u003cComponent {...pageProps} /\u003e;\n};\n\nexport default appWithTranslation(_App);\n```\n\n3. You also able to use page-level translations\n\n```js\nimport { serverSideTranslations } from 'next-i18next-ext/server';\n\nexport const getStaticProps = async ({ locale }) =\u003e {\n  return {\n    props: {\n      ...(await serverSideTranslations(locale, ['main-page'])),\n    },\n  };\n};\n```\n\n4. Use translation\n\n```js\nimport { useTranslation } from 'react-i18next';\n\nexport const Footer = () =\u003e {\n  const { t } = useTranslation('common');\n  return (\n    \u003cfooter\u003e\n      {t('description')}\n    \u003c/footer\u003e\n  );\n};\n```\n\n## API\n\n#### createGetInitialProps\n\n```ts\nconst createGetInitialProps: (namespacesRequired?: string[], configOverride?: UserConfig | null, extraLocales?: string[] | false) =\u003e (ctx: DocumentContext, locale?: string) =\u003e DocumentInitialProps;\n```\n\n#### serverSideProps\n\n```ts\nconst serverSideTranslations: (initialLocale: string, namespacesRequired?: string[] | undefined, configOverride?: UserConfig | null, extraLocales?: string[] | false) =\u003e Promise\u003cSSRConfig\u003e;\n```\n\n#### appWithTranslation\n\n```ts\nconst appWithTranslation: (App: any, configOverride?: UserConfig | null) =\u003e (appProps: any) =\u003e JSX.Element;\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffakundo%2Fnext-i18next-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffakundo%2Fnext-i18next-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffakundo%2Fnext-i18next-ext/lists"}