Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into canary
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Sep 25, 2024
2 parents 141ee8a + 03c65c6 commit 4af2265
Show file tree
Hide file tree
Showing 46 changed files with 18,484 additions and 14,411 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,36 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 3.20.0 (2024-09-24)

### Features

* Type-safe global `formats` ([#1346](https://github.com/amannn/next-intl/issues/1346)) ([b7aa14e](https://github.com/amannn/next-intl/commit/b7aa14e741e016aaaf40f67e9d2cd9ea194a029e)) – by @dBianchii

## 3.19.5 (2024-09-24)

### Bug Fixes

* Make all keys of `Formats` type optional for easier usage ([#1367](https://github.com/amannn/next-intl/issues/1367)) ([a7cbd9b](https://github.com/amannn/next-intl/commit/a7cbd9bb1d42aacb17e7a5500b7054c8bc76799b)) – by @amannn

## 3.19.4 (2024-09-19)

### Bug Fixes

* Handle malformed pathnames in middleware ([#1353](https://github.com/amannn/next-intl/issues/1353)) ([dcda9d9](https://github.com/amannn/next-intl/commit/dcda9d9c851046bd3032f6841b10831b50937ebb)), closes [#1351](https://github.com/amannn/next-intl/issues/1351) – by @amannn

## 3.19.3 (2024-09-17)

### Bug Fixes

* Handle overlapping locale prefixes correctly pt. 2 ([#1344](https://github.com/amannn/next-intl/issues/1344)) ([7958659](https://github.com/amannn/next-intl/commit/7958659f858bb5df19203ec3c1a8701e029ed2c4)) – by @amannn

## 3.19.2 (2024-09-17)

### Bug Fixes

* Handle overlapping custom locale prefixes correctly ([#1343](https://github.com/amannn/next-intl/issues/1343)) ([72c1731](https://github.com/amannn/next-intl/commit/72c1731892db6e7d0470cefcea2b1f22a5f37ce2)), closes [#1329](https://github.com/amannn/next-intl/issues/1329) – by @amannn

## 3.19.1 (2024-09-05)

### Bug Fixes
Expand Down
19 changes: 19 additions & 0 deletions docs/app/robots.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import {MetadataRoute} from 'next';

export default function robots(): MetadataRoute.Robots {
if (process.env.VERCEL_ENV !== 'production') {
return {
rules: {
userAgent: '*',
disallow: '/'
}
};
} else {
return {
rules: {
userAgent: '*',
allow: '/'
}
};
}
}
19 changes: 8 additions & 11 deletions docs/components/CodeSnippets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,32 +329,29 @@ function buildOutput() {
<span style={{color: 'var(--shiki-color-text)'}}>┌ ● /</span>
<span style={{color: 'var(--shiki-color-text)'}}> </span>
<span style={{color: 'var(--shiki-color-text)'}}>
{' '}1.4
{' '}2.1 kB
</span>
<span style={{color: 'var(--shiki-color-text)'}}> kB</span>
<span style={{color: 'var(--shiki-color-text)'}}>{' '}</span>
<span style={{color: 'var(--shiki-token-string-expression)'}}>
89.7 kB
97.1 kB
</span>
</span>
<span className="line">
<span style={{color: 'var(--shiki-color-text)'}}>├ ● /about</span>
<span style={{color: 'var(--shiki-color-text)'}}>{' '}</span>
<span style={{color: 'var(--shiki-color-text)'}}>205</span>
<span style={{color: 'var(--shiki-color-text)'}}> B</span>
<span style={{color: 'var(--shiki-color-text)'}}>{' '}</span>
<span style={{color: 'var(--shiki-color-text)'}}>2.5 kB</span>
<span style={{color: 'var(--shiki-color-text)'}}>{' '}</span>
<span style={{color: 'var(--shiki-token-string-expression)'}}>
89.3 kB
97.6 kB
</span>
</span>
<span className="line">
<span style={{color: 'var(--shiki-color-text)'}}>└ λ /[username]</span>
<span style={{color: 'var(--shiki-color-text)'}}>{' '}</span>
<span style={{color: 'var(--shiki-color-text)'}}>3.24</span>
<span style={{color: 'var(--shiki-color-text)'}}> kB</span>
<span style={{color: 'var(--shiki-color-text)'}}>{' '}</span>
<span style={{color: 'var(--shiki-color-text)'}}>3.2 kB</span>
<span style={{color: 'var(--shiki-color-text)'}}>{' '}</span>
<span style={{color: 'var(--shiki-token-string-expression)'}}>
91.1 kB
98.3 kB
</span>
</span>
<span className="line"> </span>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/CommunityLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function CommunityLink({
}: Props) {
return (
<div>
<Link className="inline-block py-2" {...rest}>
<Link className="inline-block py-2 after:!hidden" {...rest}>
<p className="text-xl font-semibold">{title}</p>
<div className="mt-2">
{type && (
Expand Down
1 change: 1 addition & 0 deletions docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const withNextra = require('nextra')({
});

module.exports = withNextra({
transpilePackages: ['react-tweet'],
redirects: () => [
// Index pages
{
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"nextra-theme-docs": "^2.13.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-tweet": "^3.2.1",
"tailwindcss": "^3.4.4"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions docs/pages/blog/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
"translations-outside-of-react-components": {
"title": "How (not) to use translations outside of React components",
"display": "hidden"
},
"date-formatting-nextjs": {
"title": "Reliable date formatting in Next.js",
"display": "hidden"
}
}
Loading

0 comments on commit 4af2265

Please sign in to comment.