Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ _BetterShift is a self-hosted shift management application for teams and individ
| **Admin Panel** | User management, calendar administration, audit logging |
| **Statistics** | Real-time shift tracking with visual charts |
| **Export** | Download calendars as ICS or PDF |
| **Localization** | English, German, Italian |
| **Localization** | English, German, Italian, Spanish |
| **PWA** | Installable on mobile and desktop |

## Quick Start
Expand Down
5 changes: 3 additions & 2 deletions lib/locales.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { de, enUS, it } from "date-fns/locale";
import { de, enUS, es, it } from "date-fns/locale";
import type { Locale as DateFnsLocale } from "date-fns";

export const locales = ["de", "en", "it"] as const;
export const locales = ["de", "en", "es", "it"] as const;
export type Locale = (typeof locales)[number];

const dateFnsLocales: Record<Locale, DateFnsLocale> = {
de: de,
en: enUS,
es: es,
it: it,
};

Expand Down
1 change: 1 addition & 0 deletions messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"language": {
"de": "Deutsch",
"en": "Englisch",
"es": "Spanisch",
"it": "Italienisch"
},
"common": {
Expand Down
1 change: 1 addition & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"language": {
"de": "German",
"en": "English",
"es": "Spanish",
"it": "Italian"
},
"common": {
Expand Down
Loading
Loading