Skip to content

Your favorite shift management application!

feat(i18n): integrate next-intl for internationalization support

panteLxf19427aca030
diff --git a/README.md b/README.md
index e871d75..f34180a 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,7 @@ A modern shift management application built with Next.js and SQLite. BetterShift
- 📋 **Shift Presets**: Create reusable shift templates for faster scheduling
- 🗓️ **Calendar View**: Interactive monthly calendar with week-based layout
- 🔒 **Password Protection**: Secure calendars with optional passwords
+- 🌐 **Internationalization (i18n)**: Supports multiple languages with automatic detection and manual switching
- 💾 **SQLite Database**: Lightweight, file-based database with Drizzle ORM
- 🐳 **Docker Support**: Easy deployment with Docker and Docker Compose
diff --git a/app/layout.tsx b/app/layout.tsx
index c9f0785..5600dc5 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,5 +1,7 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
+import { NextIntlClientProvider } from "next-intl";
+import { getMessages, getLocale } from "next-intl/server";
import "./globals.css";
const geistSans = Geist({
@@ -17,17 +19,22 @@ export const metadata: Metadata = {
description: "Manage your work shifts with ease",
};
-export default function RootLayout({
+export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
+ const locale = await getLocale();
+ const messages = await getMessages();
+
return (
- <html lang="en" className="dark">
+ <html lang={locale} className="dark">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased bg-background text-foreground`}
>
- {children}
+ <NextIntlClientProvider messages={messages} locale={locale}>
+ {children}
+ </NextIntlClientProvider>
</body>
</html>
);
diff --git a/app/page.tsx b/app/page.tsx
index 922df74..921b47b 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -2,6 +2,7 @@
import { useState, useEffect, Suspense } from "react";
import { useRouter, useSearchParams } from "next/navigation";
+import { useTranslations, useLocale } from "next-intl";
import { ShiftWithCalendar, CalendarWithCount } from "@/lib/types";
import { CalendarSelector } from "@/components/calendar-selector";
import { CalendarDialog } from "@/components/calendar-dialog";
@@ -10,6 +11,7 @@ import { ShiftCard } from "@/components/shift-card";
import { PresetSelector } from "@/components/preset-selector";
import { PasswordDialog } from "@/components/password-dialog";
import { ManagePasswordDialog } from "@/components/manage-password-dialog";
+import { LanguageSwitcher } from "@/components/language-switcher";
import { Button } from "@/components/ui/button";
import {
Plus,
@@ -29,12 +31,16 @@ import {
startOfWeek,
endOfWeek,
} from "date-fns";
+import { de, enUS } from "date-fns/locale";
import { ShiftPreset } from "@/lib/db/schema";
import { formatDateToLocal } from "@/lib/date-utils";
function HomeContent() {
const router = useRouter();
const searchParams = useSearchParams();
+ const t = useTranslations();
+ const locale = useLocale();
+ const dateLocale = locale === "de" ? de : enUS;
const [calendars, setCalendars] = useState<CalendarWithCount[]>([]);
const [selectedCalendar, setSelectedCalendar] = useState<
string | undefined
@@ -398,11 +404,11 @@ function HomeContent() {
}
return (
- <div className="min-h-screen pb-20">
+ <div className="min-h-screen flex flex-col">
{/* Header */}
<div className="sticky top-0 z-10 bg-background border-b">
<div className="container max-w-4xl mx-auto p-3 sm:p-4 space-y-3 sm:space-y-4">
- <h1 className="text-xl sm:text-2xl font-bold">BetterShift</h1>
+ <h1 className="text-xl sm:text-2xl font-bold">{t("app.title")}</h1>
<CalendarSelector
calendars={calendars}
selectedId={selectedCalendar}
@@ -423,7 +429,7 @@ function HomeContent() {
</div>
{/* Month Navigation */}
- <div className="container max-w-4xl mx-auto px-1 py-3 sm:p-4">
+ <div className="container max-w-4xl mx-auto px-1 py-3 sm:p-4 flex-1">
<div className="flex items-center justify-between mb-3 sm:mb-4 px-2 sm:px-0">
<Button
variant="outline"
@@ -434,7 +440,7 @@ function HomeContent() {
<ChevronLeft className="h-4 w-4" />
</Button>
<h2 className="text-base sm:text-xl font-semibold">
- {format(currentDate, "MMMM yyyy")}
+ {format(currentDate, "MMMM yyyy", { locale: dateLocale })}
</h2>
<Button
variant="outline"
@@ -448,7 +454,15 @@ function HomeContent() {
{/* Calendar Grid */}
<div className="grid grid-cols-7 gap-px sm:gap-1 mb-6">
- {["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"].map((day) => (
+ {[
+ t("calendar_grid.monday"),
+ t("calendar_grid.tuesday"),
+ t("calendar_grid.wednesday"),
+ t("calendar_grid.thursday"),
+ t("calendar_grid.friday"),
+ t("calendar_grid.saturday"),
+ t("calendar_grid.sunday"),
+ ].map((day) => (
<div
key={day}
className="text-center text-xs sm:text-xs font-medium text-muted-foreground p-0.5 sm:p-2"
@@ -506,7 +520,7 @@ function HomeContent() {
}}
title={`${shift.title} ${
shift.isAllDay
- ? "(All day)"
+ ? `(${t("shift.allDay")})`
: `(${shift.startTime} - ${shift.endTime})`
}`}
>
@@ -515,7 +529,7 @@ function HomeContent() {
</div>
<div className="text-[9px] sm:text-[10px] opacity-70 leading-tight">
{shift.isAllDay
- ? "All day"
+ ? t("shift.allDay")
: shift.startTime.substring(0, 5)}
</div>
</div>
@@ -534,7 +548,7 @@ function HomeContent() {
{/* Shifts List */}
<div className="space-y-3 sm:space-y-4 px-2 sm:px-0">
<div className="flex items-center justify-between flex-wrap gap-2">
- <h3 className="text-lg sm:text-xl font-bold">All Shifts</h3>
+ <h3 className="text-lg sm:text-xl font-bold">{t("shift.title")}</h3>
{shifts.length > 0 && (
<div className="flex gap-2 sm:gap-3 text-xs sm:text-sm">
<div className="px-2 sm:px-3 py-1 bg-primary/10 rounded-full">
@@ -551,8 +565,10 @@ function HomeContent() {
}
</span>
<span className="text-muted-foreground ml-1">
- <span className="hidden sm:inline">shifts this month</span>
- <span className="sm:hidden">shifts</span>
+ <span className="hidden sm:inline">
+ {t("shift.shiftsThisMonth")}
+ </span>
+ <span className="sm:hidden">{t("shift.shifts")}</span>
</span>
</div>
</div>
@@ -568,12 +584,12 @@ function HomeContent() {
</div>
<div className="space-y-1 sm:space-y-2">
<h4 className="font-semibold text-base sm:text-lg">
- No shifts yet
+ {t("shift.noShifts")}
</h4>
<p className="text-xs sm:text-sm text-muted-foreground max-w-md mx-auto">
{presets.length === 0
- ? "Create a preset first, then click on any day in the calendar to add your shifts."
- : "Select a preset above and click on any day in the calendar to add your shifts."}
+ ? t("shift.createPresetFirst")
+ : t("shift.noShiftsDescription")}
</p>
</div>
</div>
@@ -613,12 +629,15 @@ function HomeContent() {
{dayShifts[0].date &&
format(
new Date(dayShifts[0].date),
- "EEEE, MMMM d, yyyy"
+ "EEEE, MMMM d, yyyy",
+ { locale: dateLocale }
)}
</div>
<div className="text-[10px] sm:text-xs text-muted-foreground">
{dayShifts.length}{" "}
- {dayShifts.length === 1 ? "shift" : "shifts"}
+ {dayShifts.length === 1
+ ? t("shift.shift_one")
+ : t("shift.shifts")}
</div>
</div>
</div>
@@ -679,6 +698,13 @@ function HomeContent() {
}}
/>
)}
+
+ {/* Footer */}
+ <div className="border-t bg-background mt-auto">
+ <div className="container max-w-4xl mx-auto p-3 sm:p-4 flex justify-center">
+ <LanguageSwitcher />
+ </div>
+ </div>
</div>
);
}
diff --git a/components/calendar-dialog.tsx b/components/calendar-dialog.tsx
index 8d3f1da..01f6abf 100644
--- a/components/calendar-dialog.tsx
+++ b/components/calendar-dialog.tsx
@@ -1,6 +1,7 @@
"use client";
import { useState } from "react";
+import { useTranslations } from "next-intl";
import {
Dialog,
DialogContent,
@@ -34,6 +35,7 @@ export function CalendarDialog({
onOpenChange,
onSubmit,
}: CalendarDialogProps) {
+ const t = useTranslations();
const [name, setName] = useState("");
const [selectedColor, setSelectedColor] = useState(PRESET_COLORS[0]);
const [password, setPassword] = useState("");
@@ -59,21 +61,21 @@ export function CalendarDialog({
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
- <DialogTitle>Create New Calendar</DialogTitle>
+ <DialogTitle>{t("calendar.create")}</DialogTitle>
</DialogHeader>
<form onSubmit={handleSubmit} className="space-y-4">
<div className="space-y-2">
- <Label htmlFor="name">Calendar Name</Label>
+ <Label htmlFor="name">{t("calendar.name")}</Label>
<Input
id="name"
- placeholder="e.g., My Shifts"
+ placeholder={t("calendar.namePlaceholder")}
value={name}
onChange={(e) => setName(e.target.value)}
autoFocus
/>
</div>
<div className="space-y-2">
- <Label>Color</Label>
+ <Label>{t("calendar.color")}</Label>
<div className="grid grid-cols-8 gap-2">
{PRESET_COLORS.map((color) => (
<button
@@ -101,22 +103,19 @@ export function CalendarDialog({
htmlFor="usePassword"
className="text-sm font-normal cursor-pointer"
>
- Protect with password (optional)
+ {t("password.optional")}
</Label>
</div>
{usePassword && (
<div className="space-y-2">
- <Label htmlFor="password">Password</Label>
+ <Label htmlFor="password">{t("password.password")}</Label>
<Input
id="password"
type="password"
- placeholder="Enter password"
+ placeholder={t("password.passwordPlaceholder")}
value={password}
onChange={(e) => setPassword(e.target.value)}
/>
- <p className="text-xs text-muted-foreground">
- Password will be required to edit or delete shifts
- </p>
</div>
)}
</div>
@@ -126,10 +125,10 @@ export function CalendarDialog({
variant="outline"
onClick={() => onOpenChange(false)}
>
- Cancel
+ {t("common.cancel")}
</Button>
<Button type="submit" disabled={!name.trim()}>
- Create Calendar
+ {t("common.create")} {t("calendar.title")}
</Button>
</div>
</form>
diff --git a/components/calendar-selector.tsx b/components/calendar-selector.tsx
index f56f29f..ce28ac0 100644
--- a/components/calendar-selector.tsx
+++ b/components/calendar-selector.tsx
@@ -1,5 +1,6 @@
"use client";
+import { useTranslations } from "next-intl";
import { CalendarWithCount } from "@/lib/types";
import {
Select,
@@ -26,11 +27,13 @@ export function CalendarSelector({
onCreateNew,
onManagePassword,
}: CalendarSelectorProps) {
+ const t = useTranslations();
+
return (
<div className="flex gap-2 items-center">
<Select value={selectedId} onValueChange={onSelect}>
<SelectTrigger className="flex-1 h-9 sm:h-10 text-sm">
- <SelectValue placeholder="Select a calendar" />
+ <SelectValue placeholder={t("calendar.title")} />
</SelectTrigger>
<SelectContent>
{calendars.map((calendar) => (
@@ -52,7 +55,7 @@ export function CalendarSelector({
size="icon"
variant="outline"
className="h-9 w-9 sm:h-10 sm:w-10"
- title="Manage password"
+ title={t("calendar.managePassword")}
>
<Settings className="h-4 w-4" />
</Button>
diff --git a/components/language-switcher.tsx b/components/language-switcher.tsx
new file mode 100644
index 0000000..ff16db5
--- /dev/null
+++ b/components/language-switcher.tsx
@@ -0,0 +1,49 @@
+"use client";
+
+import { useLocale } from "next-intl";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import { Languages } from "lucide-react";
+
+type Locale = "de" | "en";
+
+const languageNames: Record<Locale, string> = {
+ de: "Deutsch",
+ en: "English",
+};
+
+const locales: Locale[] = ["de", "en"];
+
+export function LanguageSwitcher() {
+ const currentLocale = useLocale() as Locale;
+
+ const handleLocaleChange = (newLocale: string) => {
+ // Set cookie to persist user's choice
+ document.cookie = `NEXT_LOCALE=${newLocale}; path=/; max-age=31536000; SameSite=Lax`;
+ // Reload to apply new locale
+ window.location.reload();
+ };
+
+ return (
+ <div className="flex items-center gap-2">
+ <Languages className="h-4 w-4 text-muted-foreground" />
+ <Select value={currentLocale} onValueChange={handleLocaleChange}>
+ <SelectTrigger className="w-[140px] h-9">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ {locales.map((locale) => (
+ <SelectItem key={locale} value={locale}>
+ {languageNames[locale]}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+ );
+}
diff --git a/components/manage-password-dialog.tsx b/components/manage-password-dialog.tsx
index b26d919..8fd6618 100644
--- a/components/manage-password-dialog.tsx
+++ b/components/manage-password-dialog.tsx
@@ -1,6 +1,7 @@
"use client";
import { useState, useEffect } from "react";
+import { useTranslations } from "next-intl";
import {
Dialog,
DialogContent,
@@ -30,6 +31,7 @@ export function ManagePasswordDialog({
hasPassword,
onSuccess,
}: ManagePasswordDialogProps) {
+ const t = useTranslations();
const [currentPassword, setCurrentPassword] = useState("");
const [newPassword, setNewPassword] = useState("");
const [confirmPassword, setConfirmPassword] = useState("");
@@ -53,17 +55,17 @@ export function ManagePasswordDialog({
// Validate inputs
if (hasPassword && !currentPassword) {
- setError("Current password is required");
+ setError(t("password.errorRequired"));
return;
}
if (!removePassword) {
if (!newPassword) {
- setError("New password is required");
+ setError(t("password.errorRequired"));
return;
}
if (newPassword !== confirmPassword) {
- setError("Passwords do not match");
+ setError(t("password.errorMatch"));
return;
}
}
@@ -81,13 +83,13 @@ export function ManagePasswordDialog({
});
if (response.status === 401) {
- setError("Current password is incorrect");
+ setError(t("password.errorIncorrect"));
setLoading(false);
return;
}
if (!response.ok) {
- setError("Failed to update password");
+ setError(t("password.errorIncorrect"));
setLoading(false);
return;
}
@@ -104,7 +106,7 @@ export function ManagePasswordDialog({
onOpenChange(false);
} catch (error) {
console.error("Failed to update password:", error);
- setError("Failed to update password");
+ setError(t("password.errorIncorrect"));
} finally {
setLoading(false);
}
@@ -114,23 +116,27 @@ export function ManagePasswordDialog({
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
- <DialogTitle>Manage Password</DialogTitle>
+ <DialogTitle>
+ {t("password.manage", { name: calendarName })}
+ </DialogTitle>
<DialogDescription>
{hasPassword
- ? `Update or remove password for "${calendarName}"`
- : `Set a password for "${calendarName}"`}
+ ? t("password.currentlyProtected")
+ : t("password.notProtected")}
</DialogDescription>
</DialogHeader>
<form onSubmit={handleSubmit} className="space-y-4">
{hasPassword && (
<div className="space-y-2">
- <Label htmlFor="currentPassword">Current Password</Label>
+ <Label htmlFor="currentPassword">
+ {t("password.currentPassword")}
+ </Label>
<Input
id="currentPassword"
type="password"
value={currentPassword}
onChange={(e) => setCurrentPassword(e.target.value)}
- placeholder="Enter current password"
+ placeholder={t("password.currentPasswordPlaceholder")}
autoFocus
/>
</div>
@@ -147,7 +153,7 @@ export function ManagePasswordDialog({
htmlFor="removePassword"
className="text-sm font-normal cursor-pointer"
>
- Remove password protection
+ {t("password.removePassword")}
</Label>
</div>
)}
@@ -156,26 +162,30 @@ export function ManagePasswordDialog({
<>
<div className="space-y-2">
<Label htmlFor="newPassword">
- {hasPassword ? "New Password" : "Password"}
+ {hasPassword
+ ? t("password.newPassword")
+ : t("password.password")}
</Label>
<Input
id="newPassword"
type="password"
value={newPassword}
onChange={(e) => setNewPassword(e.target.value)}
- placeholder="Enter new password"
+ placeholder={t("password.newPasswordPlaceholder")}
autoFocus={!hasPassword}
/>
</div>
<div className="space-y-2">
- <Label htmlFor="confirmPassword">Confirm Password</Label>
+ <Label htmlFor="confirmPassword">
+ {t("password.confirmPassword")}
+ </Label>
<Input
id="confirmPassword"
type="password"
value={confirmPassword}
onChange={(e) => setConfirmPassword(e.target.value)}
- placeholder="Confirm new password"
+ placeholder={t("password.confirmPasswordPlaceholder")}
/>
</div>
</>
@@ -189,10 +199,10 @@ export function ManagePasswordDialog({
variant="outline"
onClick={() => onOpenChange(false)}
>
- Cancel
+ {t("common.cancel")}
</Button>
<Button type="submit" disabled={loading}>
- {loading ? "Saving..." : "Save Changes"}
+ {loading ? t("common.loading") : t("common.save")}
</Button>
</div>
</form>
diff --git a/components/password-dialog.tsx b/components/password-dialog.tsx
index d52e728..6ea68d7 100644
--- a/components/password-dialog.tsx
+++ b/components/password-dialog.tsx
@@ -1,6 +1,7 @@
"use client";
import { useState, useEffect } from "react";
+import { useTranslations } from "next-intl";
import {
Dialog,
DialogContent,
@@ -27,6 +28,7 @@ export function PasswordDialog({
calendarName,
onSuccess,
}: PasswordDialogProps) {
+ const t = useTranslations();
const [password, setPassword] = useState("");
const [error, setError] = useState("");
const [loading, setLoading] = useState(false);
@@ -61,11 +63,11 @@ export function PasswordDialog({
onSuccess(password);
onOpenChange(false);
} else {
- setError("Invalid password");
+ setError(t("password.errorIncorrect"));
}
} catch (error) {
console.error("Failed to verify password:", error);
- setError("Failed to verify password");
+ setError(t("password.errorIncorrect"));
} finally {
setLoading(false);
}
@@ -75,21 +77,22 @@ export function PasswordDialog({
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
- <DialogTitle>Password Required</DialogTitle>
+ <DialogTitle>
+ {t("password.password")} {t("common.required")}
+ </DialogTitle>
<DialogDescription>
- Please enter the password for calendar &quot;{calendarName}&quot; to
- edit or delete shifts.
+ {t("password.enter", { name: calendarName })}
</DialogDescription>
</DialogHeader>
<form onSubmit={handleSubmit} className="space-y-4">
<div className="space-y-2">
- <Label htmlFor="password">Password</Label>
+ <Label htmlFor="password">{t("password.password")}</Label>
<Input
id="password"
type="password"
value={password}
onChange={(e) => setPassword(e.target.value)}
- placeholder="Enter calendar password"
+ placeholder={t("password.enterCalendarPassword")}
autoFocus
/>
{error && <p className="text-sm text-red-500">{error}</p>}
@@ -100,10 +103,10 @@ export function PasswordDialog({
variant="outline"
onClick={() => onOpenChange(false)}
>
- Cancel
+ {t("common.cancel")}
</Button>
<Button type="submit" disabled={loading || !password}>
- {loading ? "Verifying..." : "Submit"}
+ {loading ? t("common.loading") : t("password.unlock")}
</Button>
</div>
</form>
diff --git a/components/preset-selector.tsx b/components/preset-selector.tsx
index 09290be..54d8300 100644
--- a/components/preset-selector.tsx
+++ b/components/preset-selector.tsx
@@ -1,5 +1,6 @@
"use client";
+import { useTranslations } from "next-intl";
import { ShiftPreset } from "@/lib/db/schema";
import { Button } from "@/components/ui/button";
import { Check, Settings, Plus, ChevronDown, ChevronUp } from "lucide-react";
@@ -46,6 +47,7 @@ export function PresetSelector({
calendarId,
onPasswordRequired,
}: PresetSelectorProps) {
+ const t = useTranslations();
const [showManageDialog, setShowManageDialog] = useState(false);
const [editingPreset, setEditingPreset] = useState<ShiftPreset | null>(null);
const [isCreatingNew, setIsCreatingNew] = useState(false);
@@ -206,12 +208,7 @@ export function PresetSelector({
}
// Password valid, confirm deletion
- if (
- !confirm(
- "Delete this preset? This will also delete all shifts created from this preset."
- )
- )
- return;
+ if (!confirm(t("preset.deleteConfirm"))) return;
try {
const url = password
@@ -241,16 +238,17 @@ export function PresetSelector({
<div className="flex items-center justify-center gap-2 text-muted-foreground">
<Plus className="h-4 sm:h-5 w-4 sm:w-5" />
<p className="text-xs sm:text-sm font-medium">
- No shift presets yet
+ {t("preset.noPresets")}
</p>
</div>
<p className="text-[10px] sm:text-xs text-muted-foreground max-w-md mx-auto">
- Create your first preset to quickly add shifts to your calendar.
- Presets save your frequently used shift times and details.
+ {t("preset.createFirstDescription")}
</p>
<Button onClick={handleCreateNew} size="sm" className="gap-2">
<Plus className="h-4 w-4" />
- <span className="text-xs sm:text-sm">Create Your First Preset</span>
+ <span className="text-xs sm:text-sm">
+ {t("preset.createYourFirst")}
+ </span>
</Button>
</div>
) : (
@@ -286,7 +284,7 @@ export function PresetSelector({
</span>
<span className="ml-1 text-[10px] sm:text-xs opacity-70">
{preset.isAllDay ? (
- <span>All day</span>
+ <span>{t("shift.allDay")}</span>
) : (
<>
<span className="sm:hidden">{preset.startTime}</span>
@@ -305,7 +303,9 @@ export function PresetSelector({
className="gap-1 text-xs sm:text-sm px-2 sm:px-3 h-8 sm:h-9"
>
<Plus className="h-3 sm:h-4 w-3 sm:w-4" />
- <span className="hidden xs:inline sm:inline">New Preset</span>
+ <span className="hidden xs:inline sm:inline">
+ {t("preset.create")}
+ </span>
</Button>
<Button
variant="ghost"
@@ -332,7 +332,7 @@ export function PresetSelector({
<ChevronDown className="h-3 w-3" />
)}
<span>
- Secondary Presets (
+ {t("preset.secondaryPresets")} (
{presets.filter((p) => p.isSecondary).length})
</span>
</Button>
@@ -371,7 +371,7 @@ export function PresetSelector({
</span>
<span className="ml-1 text-[10px] sm:text-xs opacity-70">
{preset.isAllDay ? (
- <span>All day</span>
+ <span>{t("shift.allDay")}</span>
) : (
<>
<span className="sm:hidden">
@@ -396,7 +396,7 @@ export function PresetSelector({
<Dialog open={showManageDialog} onOpenChange={setShowManageDialog}>
<DialogContent className="sm:max-w-[500px] max-h-[85vh] flex flex-col">
<DialogHeader>
- <DialogTitle>Manage Presets</DialogTitle>
+ <DialogTitle>{t("preset.manage")}</DialogTitle>
</DialogHeader>
<div className="space-y-3 overflow-y-auto flex-1 pr-2">
<Button
@@ -405,7 +405,7 @@ export function PresetSelector({
variant="outline"
>
<Plus className="mr-2 h-4 w-4" />
- Create New Preset
+ {t("preset.createNew")}
</Button>
{presets.map((preset) => (
<div
@@ -417,7 +417,7 @@ export function PresetSelector({
<div className="font-medium">{preset.title}</div>
<div className="text-sm text-muted-foreground">
{preset.isAllDay ? (
- <span>All day</span>
+ <span>{t("shift.allDay")}</span>
) : (
<>
{preset.startTime} - {preset.endTime}
@@ -431,7 +431,7 @@ export function PresetSelector({
size="sm"
onClick={() => handleEditPreset(preset)}
>
- Edit
+ {t("common.edit")}
</Button>
<Button
variant="ghost"
@@ -461,17 +461,17 @@ export function PresetSelector({
<DialogContent className="max-h-[90vh] overflow-y-auto overflow-x-hidden w-[95vw] max-w-[500px] p-4 sm:p-6">
<DialogHeader>
<DialogTitle className="text-base sm:text-lg">
- {isCreatingNew ? "Create New Preset" : "Edit Preset"}
+ {isCreatingNew ? t("preset.createNew") : t("preset.edit")}
</DialogTitle>
</DialogHeader>
<div className="space-y-4 pb-2">
<div className="space-y-1.5">
<Label htmlFor="preset-title" className="text-sm">
- Title
+ {t("shift.titleLabel")}
</Label>
<Input
id="preset-title"
- placeholder="e.g., Morning Shift"
+ placeholder={t("preset.namePlaceholder")}
value={formData.title}
onChange={(e) =>
setFormData({ ...formData, title: e.target.value })
@@ -491,13 +491,13 @@ export function PresetSelector({
htmlFor="preset-allday"
className="text-sm font-medium cursor-pointer"
>
- All-day shift
+ {t("shift.allDayShift")}
</Label>
</div>
<div className="grid grid-cols-2 gap-3">
<div className="space-y-1.5">
<Label htmlFor="preset-start" className="text-sm">
- Start Time
+ {t("shift.startTime")}
</Label>
<Input
id="preset-start"
@@ -512,7 +512,7 @@ export function PresetSelector({
</div>
<div className="space-y-1.5">
<Label htmlFor="preset-end" className="text-sm">
- End Time
+ {t("shift.endTime")}
</Label>
<Input
id="preset-end"
@@ -529,16 +529,16 @@ export function PresetSelector({
<ColorPicker
color={formData.color}
onChange={(color) => setFormData({ ...formData, color })}
- label="Color"
+ label={t("shift.color")}
presetColors={PRESET_COLORS}
/>
<div className="space-y-1.5">
<Label htmlFor="preset-notes" className="text-sm">
- Notes (optional)
+ {t("shift.notesOptional")}
</Label>
<Input
id="preset-notes"
- placeholder="Additional information..."
+ placeholder={t("shift.notesPlaceholder")}
value={formData.notes}
onChange={(e) =>
setFormData({ ...formData, notes: e.target.value })
@@ -558,7 +558,7 @@ export function PresetSelector({
htmlFor="preset-secondary"
className="text-sm font-normal cursor-pointer"
>
- Mark as secondary (collapsed by default)
+ {t("preset.markAsSecondary")}
</Label>
</div>
<div className="flex gap-2 pt-2">
@@ -572,7 +572,7 @@ export function PresetSelector({
}}
className="flex-1"
>
- Cancel
+ {t("common.cancel")}
</Button>
<Button
type="button"
@@ -580,7 +580,7 @@ export function PresetSelector({
disabled={!formData.title.trim()}
className="flex-1"
>
- {isCreatingNew ? "Create" : "Save"}
+ {isCreatingNew ? t("common.create") : t("common.save")}
</Button>
</div>
</div>
diff --git a/components/shift-card.tsx b/components/shift-card.tsx
index 4d3ec6f..21e964b 100644
--- a/components/shift-card.tsx
+++ b/components/shift-card.tsx
@@ -1,5 +1,6 @@
"use client";
+import { useTranslations } from "next-intl";
import { ShiftWithCalendar } from "@/lib/types";
import { Card } from "@/components/ui/card";
import { Button } from "@/components/ui/button";
@@ -11,6 +12,8 @@ interface ShiftCardProps {
}
export function ShiftCard({ shift, onDelete }: ShiftCardProps) {
+ const t = useTranslations();
+
return (
<Card
className="p-2 sm:p-3 hover:shadow-md transition-all group relative overflow-hidden"
@@ -23,7 +26,7 @@ export function ShiftCard({ shift, onDelete }: ShiftCardProps) {
</h3>
<div className="flex items-center gap-1 sm:gap-1.5 text-[10px] sm:text-xs text-muted-foreground mt-0.5">
{shift.isAllDay ? (
- <span className="font-medium">All day</span>
+ <span className="font-medium">{t("shift.allDay")}</span>
) : (
<>
<span className="font-medium">{shift.startTime}</span>
diff --git a/components/shift-dialog.tsx b/components/shift-dialog.tsx
index 792c829..289fa85 100644
--- a/components/shift-dialog.tsx
+++ b/components/shift-dialog.tsx
@@ -1,6 +1,7 @@
"use client";
import { useState, useEffect } from "react";
+import { useTranslations } from "next-intl";
import {
Dialog,
DialogContent,
@@ -65,6 +66,7 @@ export function ShiftDialog({
onPresetsChange,
calendarId,
}: ShiftDialogProps) {
+ const t = useTranslations();
const [formData, setFormData] = useState<ShiftFormData>({
date:
shift?.date && shift.date instanceof Date
@@ -200,13 +202,15 @@ export function ShiftDialog({
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
- <DialogTitle>{shift ? "Edit Shift" : "New Shift"}</DialogTitle>
+ <DialogTitle>
+ {shift ? t("shift.edit") : t("shift.create")}
+ </DialogTitle>
</DialogHeader>
<form onSubmit={handleSubmit} className="space-y-4">
{/* Preset Selection */}
{!shift && presets.length > 0 && (
<div className="space-y-2">
- <Label>Select Preset</Label>
+ <Label>{t("shift.selectPreset")}</Label>
<div className="flex gap-2">
<Select
onValueChange={(value) => {
@@ -215,7 +219,7 @@ export function ShiftDialog({
}}
>
<SelectTrigger>
- <SelectValue placeholder="None" />
+ <SelectValue placeholder={t("shift.none")} />
</SelectTrigger>
<SelectContent>
{presets.map((preset) => (
@@ -230,7 +234,7 @@ export function ShiftDialog({
)}
<div className="space-y-2">
- <Label htmlFor="date">Date</Label>
+ <Label htmlFor="date">{t("shift.date")}</Label>
<Input
id="date"
type="date"
@@ -253,14 +257,14 @@ export function ShiftDialog({
htmlFor="allDay"
className="text-sm font-medium cursor-pointer"
>
- All-day shift
+ {t("shift.allDayShift")}
</Label>
</div>
{!formData.isAllDay && (
<div className="grid grid-cols-2 gap-4">
<div className="space-y-2">
- <Label htmlFor="startTime">Start Time</Label>
+ <Label htmlFor="startTime">{t("shift.startTime")}</Label>
<Input
id="startTime"
type="time"
@@ -271,7 +275,7 @@ export function ShiftDialog({
/>
</div>
<div className="space-y-2">
- <Label htmlFor="endTime">End Time</Label>
+ <Label htmlFor="endTime">{t("shift.endTime")}</Label>
<Input
id="endTime"
type="time"
@@ -284,10 +288,10 @@ export function ShiftDialog({
</div>
)}
<div className="space-y-2">
- <Label htmlFor="title">Title</Label>
+ <Label htmlFor="title">{t("shift.titleLabel")}</Label>
<Input
id="title"
- placeholder="e.g., Morning Shift"
+ placeholder={t("shift.titlePlaceholder")}
value={formData.title}
onChange={(e) =>
setFormData({ ...formData, title: e.target.value })
@@ -296,10 +300,10 @@ export function ShiftDialog({
/>
</div>
<div className="space-y-2">
- <Label htmlFor="notes">Notes (optional)</Label>
+ <Label htmlFor="notes">{t("shift.notesOptional")}</Label>
<Textarea
id="notes"
- placeholder="Additional information..."
+ placeholder={t("shift.notesPlaceholder")}
value={formData.notes}
onChange={(e) =>
setFormData({ ...formData, notes: e.target.value })
@@ -310,7 +314,7 @@ export function ShiftDialog({
<ColorPicker
color={formData.color || "#3b82f6"}
onChange={(color) => setFormData({ ...formData, color })}
- label="Color"
+ label={t("shift.color")}
presetColors={PRESET_COLORS}
/>
@@ -329,15 +333,15 @@ export function ShiftDialog({
htmlFor="savePreset"
className="text-sm font-normal cursor-pointer"
>
- Save as Preset
+ {t("preset.saveAsPreset")}
</Label>
</div>
{saveAsPreset && (
<div className="space-y-2">
- <Label htmlFor="presetName">Preset Name</Label>
+ <Label htmlFor="presetName">{t("preset.presetName")}</Label>
<Input
id="presetName"
- placeholder="e.g., Morning Shift, Evening Shift..."
+ placeholder={t("preset.presetNamePlaceholder")}
value={presetName}
onChange={(e) => setPresetName(e.target.value)}
/>
@@ -352,10 +356,10 @@ export function ShiftDialog({
variant="outline"
onClick={() => onOpenChange(false)}
>
- Cancel
+ {t("common.cancel")}
</Button>
<Button type="submit" disabled={!formData.title.trim()}>
- {shift ? "Save Changes" : "Add Shift"}
+ {shift ? t("shift.saveChanges") : t("shift.addShift")}
</Button>
</div>
</form>
diff --git a/lib/i18n.ts b/lib/i18n.ts
new file mode 100644
index 0000000..dcdf5f4
--- /dev/null
+++ b/lib/i18n.ts
@@ -0,0 +1,44 @@
+import { getRequestConfig } from "next-intl/server";
+import { cookies, headers } from "next/headers";
+
+export const locales = ["de", "en"] as const;
+export type Locale = (typeof locales)[number];
+
+export const defaultLocale: Locale = "en";
+
+function getLocaleFromNavigator(acceptLanguage: string | null): Locale {
+ if (!acceptLanguage) return defaultLocale;
+
+ // Check if German is preferred
+ const languages = acceptLanguage.split(",").map((lang) => {
+ const [locale] = lang.trim().split(";");
+ return locale.toLowerCase();
+ });
+
+ // If German is in the list, use German, otherwise use English
+ for (const lang of languages) {
+ if (lang.startsWith("de")) {
+ return "de";
+ }
+ }
+
+ return "en";
+}
+
+export default getRequestConfig(async () => {
+ // Try to get locale from cookie first (user preference)
+ const cookieStore = await cookies();
+ let locale = cookieStore.get("NEXT_LOCALE")?.value as Locale | undefined;
+
+ // If no cookie, detect from browser language
+ if (!locale || !locales.includes(locale)) {
+ const headersList = await headers();
+ const acceptLanguage = headersList.get("accept-language");
+ locale = getLocaleFromNavigator(acceptLanguage);
+ }
+
+ return {
+ locale,
+ messages: (await import(`../messages/${locale}.json`)).default,
+ };
+});
diff --git a/lib/request.ts b/lib/request.ts
new file mode 100644
index 0000000..44a615e
--- /dev/null
+++ b/lib/request.ts
@@ -0,0 +1,17 @@
+import { notFound } from "next/navigation";
+import { getRequestConfig } from "next-intl/server";
+import { locales } from "./i18n";
+
+export default getRequestConfig(async ({ requestLocale }) => {
+ let locale = await requestLocale;
+
+ // Ensure that the incoming locale is valid
+ if (!locale || !locales.includes(locale as any)) {
+ locale = "en";
+ }
+
+ return {
+ locale,
+ messages: (await import(`../../messages/${locale}.json`)).default,
+ };
+});
diff --git a/messages/de.json b/messages/de.json
new file mode 100644
index 0000000..c123f48
--- /dev/null
+++ b/messages/de.json
@@ -0,0 +1,135 @@
+{
+ "common": {
+ "cancel": "Abbrechen",
+ "save": "Speichern",
+ "delete": "Löschen",
+ "edit": "Bearbeiten",
+ "create": "Erstellen",
+ "close": "Schließen",
+ "confirm": "Bestätigen",
+ "loading": "Lädt...",
+ "required": "erforderlich"
+ },
+ "app": {
+ "title": "BetterShift",
+ "description": "Verwalte deine Arbeitsschichten mit Leichtigkeit"
+ },
+ "calendar": {
+ "title": "Kalender",
+ "create": "Neuen Kalender erstellen",
+ "name": "Kalendername",
+ "namePlaceholder": "z.B. Meine Schichten",
+ "color": "Farbe",
+ "noCalendars": "Noch keine Kalender",
+ "createFirst": "Erstelle deinen ersten Kalender",
+ "managePassword": "Passwort verwalten"
+ },
+ "password": {
+ "use": "Passwort verwenden",
+ "optional": "Passwortschutz (optional)",
+ "password": "Passwort",
+ "passwordPlaceholder": "Passwort eingeben",
+ "currentPassword": "Aktuelles Passwort",
+ "currentPasswordPlaceholder": "Aktuelles Passwort eingeben",
+ "newPassword": "Neues Passwort",
+ "newPasswordPlaceholder": "Neues Passwort eingeben",
+ "confirmPassword": "Passwort bestätigen",
+ "confirmPasswordPlaceholder": "Passwort bestätigen",
+ "removePassword": "Passwort entfernen",
+ "setPassword": "Passwort setzen",
+ "updatePassword": "Passwort aktualisieren",
+ "manage": "Passwort für \"{name}\" verwalten",
+ "enter": "Passwort für \"{name}\" eingeben",
+ "enterCalendarPassword": "Kalenderpasswort eingeben",
+ "currentlyProtected": "Dieser Kalender ist derzeit passwortgeschützt.",
+ "notProtected": "Dieser Kalender ist derzeit nicht passwortgeschützt.",
+ "errorMatch": "Passwörter stimmen nicht überein",
+ "errorRequired": "Passwort erforderlich",
+ "errorIncorrect": "Falsches Passwort",
+ "unlock": "Entsperren"
+ },
+ "shift": {
+ "title": "Schichten",
+ "create": "Neue Schicht",
+ "edit": "Schicht bearbeiten",
+ "delete": "Schicht löschen",
+ "date": "Datum",
+ "startTime": "Startzeit",
+ "endTime": "Endzeit",
+ "shiftTitle": "Schichttitel",
+ "titlePlaceholder": "z.B. Frühschicht",
+ "titleLabel": "Titel",
+ "color": "Farbe",
+ "notes": "Notizen",
+ "notesPlaceholder": "Zusätzliche Informationen...",
+ "notesOptional": "Notizen (optional)",
+ "allDay": "GT",
+ "allDayShift": "Ganztägige Schicht",
+ "noShifts": "Noch keine Schichten",
+ "noShiftsDescription": "Wähle oben eine Vorlage aus und klicke auf einen beliebigen Tag im Kalender, um deine Schichten hinzuzufügen.",
+ "createPresetFirst": "Erstelle zuerst eine Vorlage, dann klicke auf einen beliebigen Tag im Kalender, um deine Schichten hinzuzufügen.",
+ "shiftsThisMonth": "Schichten diesen Monat",
+ "shifts": "Schichten",
+ "shift_one": "Schicht",
+ "shift_other": "{count} Schichten",
+ "selectPreset": "Vorlage auswählen",
+ "none": "Keine",
+ "addShift": "Schicht hinzufügen",
+ "saveChanges": "Änderungen speichern"
+ },
+ "preset": {
+ "title": "Vorlage",
+ "create": "Neue Vorlage",
+ "createNew": "Neue Vorlage erstellen",
+ "createYourFirst": "Erstelle deine erste Vorlage",
+ "edit": "Vorlage bearbeiten",
+ "delete": "Vorlage löschen",
+ "manage": "Vorlagen verwalten",
+ "name": "Vorlagenname",
+ "namePlaceholder": "z.B. Frühschicht",
+ "saveAsPreset": "Als Vorlage speichern",
+ "presetName": "Vorlagenname",
+ "presetNamePlaceholder": "z.B. Frühschicht, Spätschicht...",
+ "noPresets": "Noch keine Schichtvorlagen",
+ "createFirst": "Erstelle deine erste Schichtvorlage",
+ "createFirstDescription": "Erstelle deine erste Vorlage, um Schichten schnell zu deinem Kalender hinzuzufügen. Vorlagen speichern deine häufig genutzten Schichtzeiten und Details.",
+ "select": "Vorlage auswählen",
+ "deleteConfirm": "Diese Vorlage löschen? Alle aus dieser Vorlage erstellten Schichten werden ebenfalls gelöscht.",
+ "autoSaveEnabled": "Automatisches Speichern als Vorlage ist aktiviert",
+ "new": "Neu",
+ "secondaryPresets": "Sekundäre Vorlagen",
+ "markAsSecondary": "Als sekundär markieren (standardmäßig eingeklappt)"
+ },
+ "calendar_grid": {
+ "monday": "Mo",
+ "tuesday": "Di",
+ "wednesday": "Mi",
+ "thursday": "Do",
+ "friday": "Fr",
+ "saturday": "Sa",
+ "sunday": "So",
+ "mondayFull": "Montag",
+ "tuesdayFull": "Dienstag",
+ "wednesdayFull": "Mittwoch",
+ "thursdayFull": "Donnerstag",
+ "fridayFull": "Freitag",
+ "saturdayFull": "Samstag",
+ "sundayFull": "Sonntag"
+ },
+ "language": {
+ "title": "Sprache",
+ "german": "Deutsch",
+ "english": "English",
+ "select": "Sprache wählen"
+ },
+ "colors": {
+ "blue": "Blau",
+ "red": "Rot",
+ "green": "Grün",
+ "amber": "Bernstein",
+ "violet": "Violett",
+ "pink": "Pink",
+ "cyan": "Cyan",
+ "orange": "Orange"
+ }
+}
diff --git a/messages/en.json b/messages/en.json
new file mode 100644
index 0000000..9d73d8d
--- /dev/null
+++ b/messages/en.json
@@ -0,0 +1,135 @@
+{
+ "common": {
+ "cancel": "Cancel",
+ "save": "Save",
+ "delete": "Delete",
+ "edit": "Edit",
+ "create": "Create",
+ "close": "Close",
+ "confirm": "Confirm",
+ "loading": "Loading...",
+ "required": "required"
+ },
+ "app": {
+ "title": "BetterShift",
+ "description": "Manage your work shifts with ease"
+ },
+ "calendar": {
+ "title": "Calendar",
+ "create": "Create New Calendar",
+ "name": "Calendar Name",
+ "namePlaceholder": "e.g., My Shifts",
+ "color": "Color",
+ "noCalendars": "No calendars yet",
+ "createFirst": "Create your first calendar",
+ "managePassword": "Manage Password"
+ },
+ "password": {
+ "use": "Use password",
+ "optional": "Password Protection (optional)",
+ "password": "Password",
+ "passwordPlaceholder": "Enter password",
+ "currentPassword": "Current Password",
+ "currentPasswordPlaceholder": "Enter current password",
+ "newPassword": "New Password",
+ "newPasswordPlaceholder": "Enter new password",
+ "confirmPassword": "Confirm Password",
+ "confirmPasswordPlaceholder": "Confirm password",
+ "removePassword": "Remove Password",
+ "setPassword": "Set Password",
+ "updatePassword": "Update Password",
+ "manage": "Manage Password for \"{name}\"",
+ "enter": "Enter Password for \"{name}\"",
+ "enterCalendarPassword": "Enter calendar password",
+ "currentlyProtected": "This calendar is currently password protected.",
+ "notProtected": "This calendar is currently not password protected.",
+ "errorMatch": "Passwords do not match",
+ "errorRequired": "Password is required",
+ "errorIncorrect": "Incorrect password",
+ "unlock": "Unlock"
+ },
+ "shift": {
+ "title": "Shifts",
+ "create": "New Shift",
+ "edit": "Edit Shift",
+ "delete": "Delete Shift",
+ "date": "Date",
+ "startTime": "Start Time",
+ "endTime": "End Time",
+ "shiftTitle": "Shift Title",
+ "titlePlaceholder": "e.g., Morning Shift",
+ "titleLabel": "Title",
+ "color": "Color",
+ "notes": "Notes",
+ "notesPlaceholder": "Additional information...",
+ "notesOptional": "Notes (optional)",
+ "allDay": "All Day",
+ "allDayShift": "All-day shift",
+ "noShifts": "No shifts yet",
+ "noShiftsDescription": "Select a preset above and click on any day in the calendar to add your shifts.",
+ "createPresetFirst": "Create a preset first, then click on any day in the calendar to add your shifts.",
+ "shiftsThisMonth": "shifts this month",
+ "shifts": "shifts",
+ "shift_one": "shift",
+ "shift_other": "{count} shifts",
+ "selectPreset": "Select Preset",
+ "none": "None",
+ "addShift": "Add Shift",
+ "saveChanges": "Save Changes"
+ },
+ "preset": {
+ "title": "Preset",
+ "create": "New Preset",
+ "createNew": "Create New Preset",
+ "createYourFirst": "Create Your First Preset",
+ "edit": "Edit Preset",
+ "delete": "Delete Preset",
+ "manage": "Manage Presets",
+ "name": "Preset Name",
+ "namePlaceholder": "e.g., Morning Shift",
+ "saveAsPreset": "Save as preset",
+ "presetName": "Preset name",
+ "presetNamePlaceholder": "e.g., Morning Shift, Evening Shift...",
+ "noPresets": "No shift presets yet",
+ "createFirst": "Create your first shift preset",
+ "createFirstDescription": "Create your first preset to quickly add shifts to your calendar. Presets save your frequently used shift times and details.",
+ "select": "Select a preset",
+ "deleteConfirm": "Delete this preset? This will also delete all shifts created from this preset.",
+ "autoSaveEnabled": "Auto-save as preset is enabled",
+ "new": "New",
+ "secondaryPresets": "Secondary Presets",
+ "markAsSecondary": "Mark as secondary (collapsed by default)"
+ },
+ "calendar_grid": {
+ "monday": "Mon",
+ "tuesday": "Tue",
+ "wednesday": "Wed",
+ "thursday": "Thu",
+ "friday": "Fri",
+ "saturday": "Sat",
+ "sunday": "Sun",
+ "mondayFull": "Monday",
+ "tuesdayFull": "Tuesday",
+ "wednesdayFull": "Wednesday",
+ "thursdayFull": "Thursday",
+ "fridayFull": "Friday",
+ "saturdayFull": "Saturday",
+ "sundayFull": "Sunday"
+ },
+ "language": {
+ "title": "Language",
+ "german": "Deutsch",
+ "english": "English",
+ "select": "Select Language"
+ },
+ "colors": {
+ "blue": "Blue",
+ "red": "Red",
+ "green": "Green",
+ "amber": "Amber",
+ "violet": "Violet",
+ "pink": "Pink",
+ "cyan": "Cyan",
+ "orange": "Orange"
+ }
+}
diff --git a/middleware.ts b/middleware.ts
new file mode 100644
index 0000000..762f5ee
--- /dev/null
+++ b/middleware.ts
@@ -0,0 +1,12 @@
+import { NextRequest, NextResponse } from "next/server";
+
+export function middleware(request: NextRequest) {
+ // This middleware doesn't need to do anything
+ // Locale detection is handled in i18n.ts
+ return NextResponse.next();
+}
+
+export const config = {
+ // Skip middleware for api, static files, etc.
+ matcher: ["/((?!api|_next|_vercel|.*\\..*).*)"],
+};
diff --git a/next.config.ts b/next.config.ts
index ed23578..6e5068c 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -1,8 +1,11 @@
import type { NextConfig } from "next";
+import createNextIntlPlugin from "next-intl/plugin";
+
+const withNextIntl = createNextIntlPlugin("./lib/i18n.ts");
const nextConfig: NextConfig = {
/* config options here */
output: "standalone",
};
-export default nextConfig;
+export default withNextIntl(nextConfig);
diff --git a/package-lock.json b/package-lock.json
index d526762..2a42fab 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -22,6 +22,7 @@
"drizzle-orm": "^0.44.7",
"lucide-react": "^0.554.0",
"next": "16.0.3",
+ "next-intl": "^4.5.5",
"react": "19.2.0",
"react-colorful": "^5.6.1",
"react-day-picker": "^9.11.1",
@@ -37,7 +38,6 @@
"eslint": "^9",
"eslint-config-next": "16.0.3",
"tailwindcss": "^4",
- "tsx": "^4.20.6",
"tw-animate-css": "^1.4.0",
"typescript": "^5"
}
@@ -1349,6 +1349,66 @@
"integrity": "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==",
"license": "MIT"
},
+ "node_modules/@formatjs/ecma402-abstract": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-2.3.6.tgz",
+ "integrity": "sha512-HJnTFeRM2kVFVr5gr5kH1XP6K0JcJtE7Lzvtr3FS/so5f1kpsqqqxy5JF+FRaO6H2qmcMfAUIox7AJteieRtVw==",
+ "license": "MIT",
+ "dependencies": {
+ "@formatjs/fast-memoize": "2.2.7",
+ "@formatjs/intl-localematcher": "0.6.2",
+ "decimal.js": "^10.4.3",
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@formatjs/ecma402-abstract/node_modules/@formatjs/intl-localematcher": {
+ "version": "0.6.2",
+ "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.6.2.tgz",
+ "integrity": "sha512-XOMO2Hupl0wdd172Y06h6kLpBz6Dv+J4okPLl4LPtzbr8f66WbIoy4ev98EBuZ6ZK4h5ydTN6XneT4QVpD7cdA==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@formatjs/fast-memoize": {
+ "version": "2.2.7",
+ "resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-2.2.7.tgz",
+ "integrity": "sha512-Yabmi9nSvyOMrlSeGGWDiH7rf3a7sIwplbvo/dlz9WCIjzIQAfy1RMf4S0X3yG724n5Ghu2GmEl5NJIV6O9sZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@formatjs/icu-messageformat-parser": {
+ "version": "2.11.4",
+ "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.11.4.tgz",
+ "integrity": "sha512-7kR78cRrPNB4fjGFZg3Rmj5aah8rQj9KPzuLsmcSn4ipLXQvC04keycTI1F7kJYDwIXtT2+7IDEto842CfZBtw==",
+ "license": "MIT",
+ "dependencies": {
+ "@formatjs/ecma402-abstract": "2.3.6",
+ "@formatjs/icu-skeleton-parser": "1.8.16",
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@formatjs/icu-skeleton-parser": {
+ "version": "1.8.16",
+ "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.8.16.tgz",
+ "integrity": "sha512-H13E9Xl+PxBd8D5/6TVUluSpxGNvFSlN/b3coUp0e0JpuWXXnQDiavIpY3NnvSp4xhEMoXyyBvVfdFX8jglOHQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@formatjs/ecma402-abstract": "2.3.6",
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@formatjs/intl-localematcher": {
+ "version": "0.5.10",
+ "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.5.10.tgz",
+ "integrity": "sha512-af3qATX+m4Rnd9+wHcjJ4w2ijq+rAVP3CCinJQvFv1kgSu1W6jypUmvleJxcewdxmutM8dmIRZFxO/IQBZmP2Q==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "2"
+ }
+ },
"node_modules/@humanfs/core": {
"version": "0.19.1",
"resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",
@@ -2833,6 +2893,178 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@schummar/icu-type-parser": {
+ "version": "1.21.5",
+ "resolved": "https://registry.npmjs.org/@schummar/icu-type-parser/-/icu-type-parser-1.21.5.tgz",
+ "integrity": "sha512-bXHSaW5jRTmke9Vd0h5P7BtWZG9Znqb8gSDxZnxaGSJnGwPLDPfS+3g0BKzeWqzgZPsIVZkM7m2tbo18cm5HBw==",
+ "license": "MIT"
+ },
+ "node_modules/@swc/core-darwin-arm64": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.15.3.tgz",
+ "integrity": "sha512-AXfeQn0CvcQ4cndlIshETx6jrAM45oeUrK8YeEY6oUZU/qzz0Id0CyvlEywxkWVC81Ajpd8TQQ1fW5yx6zQWkQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-darwin-x64": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.15.3.tgz",
+ "integrity": "sha512-p68OeCz1ui+MZYG4wmfJGvcsAcFYb6Sl25H9TxWl+GkBgmNimIiRdnypK9nBGlqMZAcxngNPtnG3kEMNnvoJ2A==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm-gnueabihf": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.15.3.tgz",
+ "integrity": "sha512-Nuj5iF4JteFgwrai97mUX+xUOl+rQRHqTvnvHMATL/l9xE6/TJfPBpd3hk/PVpClMXG3Uvk1MxUFOEzM1JrMYg==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm64-gnu": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.15.3.tgz",
+ "integrity": "sha512-2Nc/s8jE6mW2EjXWxO/lyQuLKShcmTrym2LRf5Ayp3ICEMX6HwFqB1EzDhwoMa2DcUgmnZIalesq2lG3krrUNw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm64-musl": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.15.3.tgz",
+ "integrity": "sha512-j4SJniZ/qaZ5g8op+p1G9K1z22s/EYGg1UXIb3+Cg4nsxEpF5uSIGEE4mHUfA70L0BR9wKT2QF/zv3vkhfpX4g==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-x64-gnu": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.15.3.tgz",
+ "integrity": "sha512-aKttAZnz8YB1VJwPQZtyU8Uk0BfMP63iDMkvjhJzRZVgySmqt/apWSdnoIcZlUoGheBrcqbMC17GGUmur7OT5A==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-x64-musl": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.15.3.tgz",
+ "integrity": "sha512-oe8FctPu1gnUsdtGJRO2rvOUIkkIIaHqsO9xxN0bTR7dFTlPTGi2Fhk1tnvXeyAvCPxLIcwD8phzKg6wLv9yug==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-arm64-msvc": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.15.3.tgz",
+ "integrity": "sha512-L9AjzP2ZQ/Xh58e0lTRMLvEDrcJpR7GwZqAtIeNLcTK7JVE+QineSyHp0kLkO1rttCHyCy0U74kDTj0dRz6raA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-ia32-msvc": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.15.3.tgz",
+ "integrity": "sha512-B8UtogMzErUPDWUoKONSVBdsgKYd58rRyv2sHJWKOIMCHfZ22FVXICR4O/VwIYtlnZ7ahERcjayBHDlBZpR0aw==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-x64-msvc": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.15.3.tgz",
+ "integrity": "sha512-SpZKMR9QBTecHeqpzJdYEfgw30Oo8b/Xl6rjSzBt1g0ZsXyy60KLXrp6IagQyfTYqNYE/caDvwtF2FPn7pomog==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/counter": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz",
+ "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==",
+ "license": "Apache-2.0"
+ },
"node_modules/@swc/helpers": {
"version": "0.5.15",
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz",
@@ -2842,6 +3074,15 @@
"tslib": "^2.8.0"
}
},
+ "node_modules/@swc/types": {
+ "version": "0.1.25",
+ "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.25.tgz",
+ "integrity": "sha512-iAoY/qRhNH8a/hBvm3zKj9qQ4oc2+3w1unPJa2XvTK3XjeLXtzcCingVPw/9e5mn1+0yPqxcBGp9Jf0pkfMb1g==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@swc/counter": "^0.1.3"
+ }
+ },
"node_modules/@tailwindcss/node": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.17.tgz",
@@ -4492,6 +4733,12 @@
}
}
},
+ "node_modules/decimal.js": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",
+ "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",
+ "license": "MIT"
+ },
"node_modules/decompress-response": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
@@ -5630,21 +5877,6 @@
"integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
"license": "MIT"
},
- "node_modules/fsevents": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
- "dev": true,
- "hasInstallScript": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- }
- },
"node_modules/function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
@@ -6055,6 +6287,18 @@
"node": ">= 0.4"
}
},
+ "node_modules/intl-messageformat": {
+ "version": "10.7.18",
+ "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-10.7.18.tgz",
+ "integrity": "sha512-m3Ofv/X/tV8Y3tHXLohcuVuhWKo7BBq62cqY15etqmLxg2DZ34AGGgQDeR+SCta2+zICb1NX83af0GJmbQ1++g==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@formatjs/ecma402-abstract": "2.3.6",
+ "@formatjs/fast-memoize": "2.2.7",
+ "@formatjs/icu-messageformat-parser": "2.11.4",
+ "tslib": "^2.8.0"
+ }
+ },
"node_modules/is-array-buffer": {
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz",
@@ -7092,6 +7336,15 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/negotiator": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/next": {
"version": "16.0.3",
"resolved": "https://registry.npmjs.org/next/-/next-16.0.3.tgz",
@@ -7144,6 +7397,91 @@
}
}
},
+ "node_modules/next-intl": {
+ "version": "4.5.5",
+ "resolved": "https://registry.npmjs.org/next-intl/-/next-intl-4.5.5.tgz",
+ "integrity": "sha512-BVAcZP603tZ83c5b/qHaJt5g2/y6YaxQwc8xAlqE9VGf+q5Uc32rpRTlmqCZB8OhcPCO7L6opL47obXJh3uYTw==",
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/amannn"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@formatjs/intl-localematcher": "^0.5.4",
+ "@swc/core": "^1.15.2",
+ "negotiator": "^1.0.0",
+ "next-intl-swc-plugin-extractor": "^4.5.5",
+ "po-parser": "^0.1.2",
+ "use-intl": "^4.5.5"
+ },
+ "peerDependencies": {
+ "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0",
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/next-intl-swc-plugin-extractor": {
+ "version": "4.5.5",
+ "resolved": "https://registry.npmjs.org/next-intl-swc-plugin-extractor/-/next-intl-swc-plugin-extractor-4.5.5.tgz",
+ "integrity": "sha512-mcq/Eag0SXR1Zcerc4TQxTc4QJdt+5uhLLI7VI1mCbArG/QVsbXcCqd72dKSQpEfz8q0yuTJIlddBs54fT4lkw==",
+ "license": "MIT"
+ },
+ "node_modules/next-intl/node_modules/@swc/core": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.15.3.tgz",
+ "integrity": "sha512-Qd8eBPkUFL4eAONgGjycZXj1jFCBW8Fd+xF0PzdTlBCWQIV1xnUT7B93wUANtW3KGjl3TRcOyxwSx/u/jyKw/Q==",
+ "hasInstallScript": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@swc/counter": "^0.1.3",
+ "@swc/types": "^0.1.25"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/swc"
+ },
+ "optionalDependencies": {
+ "@swc/core-darwin-arm64": "1.15.3",
+ "@swc/core-darwin-x64": "1.15.3",
+ "@swc/core-linux-arm-gnueabihf": "1.15.3",
+ "@swc/core-linux-arm64-gnu": "1.15.3",
+ "@swc/core-linux-arm64-musl": "1.15.3",
+ "@swc/core-linux-x64-gnu": "1.15.3",
+ "@swc/core-linux-x64-musl": "1.15.3",
+ "@swc/core-win32-arm64-msvc": "1.15.3",
+ "@swc/core-win32-ia32-msvc": "1.15.3",
+ "@swc/core-win32-x64-msvc": "1.15.3"
+ },
+ "peerDependencies": {
+ "@swc/helpers": ">=0.5.17"
+ },
+ "peerDependenciesMeta": {
+ "@swc/helpers": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/next-intl/node_modules/@swc/helpers": {
+ "version": "0.5.17",
+ "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.17.tgz",
+ "integrity": "sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==",
+ "license": "Apache-2.0",
+ "optional": true,
+ "peer": true,
+ "dependencies": {
+ "tslib": "^2.8.0"
+ }
+ },
"node_modules/next/node_modules/postcss": {
"version": "8.4.31",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
@@ -7462,6 +7800,12 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
+ "node_modules/po-parser": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/po-parser/-/po-parser-0.1.3.tgz",
+ "integrity": "sha512-VYuhQ4HpLgEvoHryBLSNRx9vI5gcfWKufw7Nv/uMHefQYFferxEtiC9afF7STeOQetIHMYMkrvHxs+H7OERQSw==",
+ "license": "MIT"
+ },
"node_modules/possible-typed-array-names": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",
@@ -8625,26 +8969,6 @@
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
"license": "0BSD"
},
- "node_modules/tsx": {
- "version": "4.20.6",
- "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.6.tgz",
- "integrity": "sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "esbuild": "~0.25.0",
- "get-tsconfig": "^4.7.5"
- },
- "bin": {
- "tsx": "dist/cli.mjs"
- },
- "engines": {
- "node": ">=18.0.0"
- },
- "optionalDependencies": {
- "fsevents": "~2.3.3"
- }
- },
"node_modules/tunnel-agent": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
@@ -8762,7 +9086,7 @@
"version": "5.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
- "dev": true,
+ "devOptional": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
@@ -8919,6 +9243,20 @@
}
}
},
+ "node_modules/use-intl": {
+ "version": "4.5.5",
+ "resolved": "https://registry.npmjs.org/use-intl/-/use-intl-4.5.5.tgz",
+ "integrity": "sha512-MUIOVDmZipK23Y2jrVgl/3w15nGcV9nNiz6FNfBFCdgbglOmjB9O7AegZcNFYGXUs5W+vYQYYsQCjmWW/NbhRQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@formatjs/fast-memoize": "^2.2.0",
+ "@schummar/icu-type-parser": "1.21.5",
+ "intl-messageformat": "^10.5.14"
+ },
+ "peerDependencies": {
+ "react": "^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0"
+ }
+ },
"node_modules/use-sidecar": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",
diff --git a/package.json b/package.json
index 1b13637..cf96545 100644
--- a/package.json
+++ b/package.json
@@ -27,6 +27,7 @@
"drizzle-orm": "^0.44.7",
"lucide-react": "^0.554.0",
"next": "16.0.3",
+ "next-intl": "^4.5.5",
"react": "19.2.0",
"react-colorful": "^5.6.1",
"react-day-picker": "^9.11.1",