Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

next-multilingual

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-multilingual - npm Package Versions

1
16

3.0.1

Diff

Changelog

Source

3.0.1 (2022-10-31)

Bug Fixes

  • preserve casing for dynamic route parameter names (9f43bcd)
nbouvrette
published 3.0.0 •

Changelog

Source

3.0.0 (2022-10-27)

Features

  • add catch-all dynamic route support (668ba1d)

BREAKING CHANGES

  • The configuration now requires a new defaultLocale parameter (it used to be implicit).
  • getHtmlLang now takes a DocumentProps object as an argument to better align with functional components.
  • getLocalizedRouteParameters takes new parameter: import.meta.url
    • <Link>, useLocalizedUrl, getLocalizedUrl no longer allow UrlObject to be passed in argument. Only strings are supported to simplify the API types. UrlObject.href can easily be used instead of passing the object directly. - useRouter().query is no longer used to pass dynamic route parameters. Full URLs should be provided instead.
  • useLocalizedUrl and getLocalizedUrl have a new 3rd parameter: localizedRouteParameters - meaning the existing parameters will shift by 1 position.
  • slugify's locale argument is now mandatory.
nbouvrette
published 2.0.4 •

Changelog

Source

2.0.4 (2022-10-13)

nbouvrette
published 2.0.3 •

Changelog

Source

2.0.3 (2022-10-09)

nbouvrette
published 2.0.2 •

Changelog

Source

2.0.2 (2022-10-03)

nbouvrette
published 2.0.1 •

Changelog

Source

2.0.1 (2022-09-25)

nbouvrette
published 2.0.0 •

Changelog

Source

2.0.0 (2022-09-18)

Features

  • simplified APIs to access locale values (ac2dcb3)

BREAKING CHANGES

  • replaced the first few getLocalizedRouteParameters arguments to take directly the getStaticProps or getServerSideProps contexts.
  • useRouter will now return the locales used by next-multilingual instead of those used by Next.js:
    • getActualLocale, getActualLocales and getActualDefaultLocale should not longer be required
  • replacing MultilingualStaticProps by getStaticPropsLocales
  • replacing MultilingualServerSideProps by getServerSidePropsLocales
nbouvrette
published 1.5.0 •

Changelog

Source

1.5.0 (2022-09-15)

Features

  • support localized dynamic route (159e0b2)
  • support the .. syntax in localized URL APIs (bad63d5)

BREAKING CHANGES

  • Move useRouter to next-multilingual/router
  • Dynamic routes no longer works without using getLocalizedRouteParameters
nbouvrette
published 1.4.2 •

Changelog

Source

1.4.2 (2022-08-23)

nbouvrette
published 1.4.1 •

Changelog

Source

1.4.1 (2022-08-17)

Features

  • add the new MultilingualServerSideProps & MultilingualStaticProps types (4351938)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc