Skip to content

Commit 3504a59

Browse files
authored
feat: update next canary version and fix typos (#419)
1 parent e5d1f53 commit 3504a59

File tree

5 files changed

+45
-42
lines changed

5 files changed

+45
-42
lines changed

pwa/app/(common)/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default async function NotFound() {
55
return (
66
<div
77
className={classNames(
8-
"h-screen pt-16 bg-blue text-white flex flex-col items-center justify-center md:flex-row",
8+
"h-screen pt-16 bg-blue-light text-white flex flex-col items-center justify-center md:flex-row after:absolute after:w-full after:h-80 after:top-full after:left-0 after:bg-blue-light",
99
"dark:text-blue-black"
1010
)}
1111
>

pwa/i18n/dictionaries/fr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"or_follow_us": "ou suivez-nous sur nos réseaux",
147147
"partners": { "title": "Nos <strong>partenaires</strong>" },
148148
"pricing": {
149-
"certificate_needed": "Un justificafif sera demandé",
149+
"certificate_needed": "Un justificatif sera demandé",
150150
"conference": {
151151
"offers": {
152152
"on_site": "Billet 2 jours",

pwa/middleware.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ function getLocale(request: NextRequest): string | undefined {
1111
// Use negotiator and intl-localematcher to get best locale
1212
const languages = new Negotiator({ headers: negotiatorHeaders }).languages();
1313
const locales = [...i18n.locales];
14-
return matchLocale(languages, locales, i18n.defaultLocale);
14+
const locale = matchLocale(languages, locales, i18n.defaultLocale);
15+
return ([...i18n.locales] as string[]).includes(locale)
16+
? locale
17+
: i18n.defaultLocale;
1518
}
1619

1720
export async function middleware(request: NextRequest) {

pwa/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"marked": "^5.0.4",
2929
"marked-highlight": "^2.0.1",
3030
"negotiator": "^0.6.3",
31-
"next": "13.4.7-canary.1",
31+
"next": "13.4.8-canary.8",
3232
"next-themes": "npm:@wits/next-themes@^0.2.16",
3333
"octokit": "^2.0.19",
3434
"prettier": "^2.8.8",

pwa/pnpm-lock.yaml

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)