Skip to content

Commit

Permalink
docs: Improve blog post wording
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Dec 19, 2024
1 parent 7e7011d commit 9f3a4b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions docs/src/pages/blog/next-intl-4-0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import StayUpdated from '@/components/StayUpdated.mdx';

(this post is still a draft)

After a year of feature development, this release mostly aims to clean up the API surface to ensure `next-intl` remains lean—there should be no big surprises. Many significant improvements have already been shipped in [minor versions](/blog/next-intl-3-22) previously. However, this release also comes with a series of improvements that you might find useful.
After a year of feature development, this release focuses on streamlining the API surface while maintaining the lean core architecture of `next-intl`. While many major improvements were already released in [previous minor versions](/blog/next-intl-3-22), this update introduces several valuable enhancements that will improve your development experience and make working with internationalization even more seamless.

Here's what's new in `[email protected]`:

Expand All @@ -20,7 +20,7 @@ Here's what's new in `[email protected]`:
3. [**Strictly-typed ICU arguments**](#strictly-typed-icu-arguments)
4. [**GDPR compliance**](#gdpr-compliance)
5. [**Modernized build output**](#modernized-build-output)
6. [**Preparation for upcoming Next.js features**](#nextjs-future)
6. [**Preparation for upcoming Next.js features**](#nextjs-ppr-dynamicio)

Please also have a look at the [other breaking changes](#other-breaking-changes) before you [upgrade](#upgrade-now).

Expand All @@ -38,8 +38,8 @@ import en from './messages/en.json';

declare module 'next-intl' {
interface AppConfig {
Formats: typeof formats;
Messages: typeof en;
Formats: typeof formats;
}
}
```
Expand Down Expand Up @@ -194,7 +194,7 @@ The build output of `next-intl` has been modernized and now leverages the follow

With these changes, the bundle size of `next-intl` has been reduced by ~7% ([all details](https://github.com/amannn/next-intl/pull/1470)).

## Preparation for upcoming Next.js features [#nextjs-future]
## Preparation for `ppr` and `dynamicIO` [#nextjs-ppr-dynamicio]

To ensure that the sails of `next-intl` are set for a steady course in the upcoming future, I've investigated the implications of upcoming Next.js features like [Partial Prerendering](https://nextjs.org/docs/app/api-reference/next-config-js/ppr) and [`dynamicIO`](https://nextjs.org/docs/canary/app/api-reference/config/next-config-js/dynamicIO) for `next-intl`.

Expand Down Expand Up @@ -240,10 +240,16 @@ Afterwards, you can upgrade by running:
npm install next-intl@v4-beta
```

## Thank you
If you need help, you can refer to the [examples](/examples) which have all been updated.

## Thank you!

I want to sincerely thank everyone who has helped to make `next-intl` what it is today. A special thank you goes to <PartnerContentLink href="https://crowdin.com/">Crowdin</PartnerContentLink>, the primary sponsor of `next-intl`, enabling me to regularly work on this project.
I want to sincerely thank everyone who has helped to make `next-intl` what it is today.

A special thank you goes to <PartnerContentLink href="https://crowdin.com/">Crowdin</PartnerContentLink>, the primary sponsor of `next-intl`, enabling me to regularly work on this project and provide it as a free and open-source library for everyone.

—Jan

PS: Have you heard that [learn.next-intl.dev](https://learn.next-intl.dev) is coming?

<StayUpdated />
2 changes: 1 addition & 1 deletion docs/src/pages/docs/workflows/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ TypeScript currently has a [limitation](https://github.com/microsoft/TypeScript/
}
```

2. Enable the `createMessagesDeclaration` setting in your Next.js config:
2. Configure the `createMessagesDeclaration` setting in your Next.js config:

```tsx filename="next.config.mjs"
import {createNextIntlPlugin} from 'next-intl/plugin';
Expand Down

0 comments on commit 9f3a4b0

Please sign in to comment.