first commit

This commit is contained in:
2026-07-30 12:15:17 +03:00
commit 1f29eead28
48 changed files with 10666 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { getRequestConfig } from 'next-intl/server'
import { routing } from './routing'
export default getRequestConfig(async ({ requestLocale }) => {
let locale = await requestLocale
if (!locale || !routing.locales.includes(locale as 'tr' | 'en')) {
locale = routing.defaultLocale
}
return {
locale,
messages: (await import(`../messages/${locale}.json`)).default,
}
})
+6
View File
@@ -0,0 +1,6 @@
import { defineRouting } from 'next-intl/routing'
export const routing = defineRouting({
locales: ['tr', 'en'],
defaultLocale: 'tr',
})