-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update all non-major dependencies (#139)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ktmouk <[email protected]>
- Loading branch information
1 parent
09bc590
commit 508949b
Showing
12 changed files
with
190 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import type { AbstractIntlMessages } from "next-intl"; | ||
import { getRequestConfig } from "next-intl/server"; | ||
import { routing } from "./routing"; | ||
|
||
// https://next-intl-docs.vercel.app/docs/getting-started/app-router/with-i18n-routing#i18n-request | ||
export default getRequestConfig(async ({ requestLocale }) => { | ||
let locale = await requestLocale; | ||
|
||
if ( | ||
typeof locale !== "string" || | ||
!routing.locales.includes(locale as (typeof routing.locales)[number]) | ||
) { | ||
locale = routing.defaultLocale; | ||
} | ||
|
||
return { | ||
locale, | ||
messages: ( | ||
(await import(`../../messages/${locale}.json`)) as { | ||
default: AbstractIntlMessages; | ||
} | ||
).default, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { createNavigation } from "next-intl/navigation"; | ||
import { defineRouting } from "next-intl/routing"; | ||
|
||
// https://next-intl-docs.vercel.app/docs/getting-started/app-router/with-i18n-routing#i18nts | ||
export const routing = defineRouting({ | ||
locales: ["en", "ja"], | ||
defaultLocale: "en", | ||
}); | ||
|
||
export const { Link, redirect, usePathname, useRouter, getPathname } = | ||
createNavigation(routing); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.