mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
Merge pull request #1246 from robdegraaf/feat/i18n-nl
This commit is contained in:
commit
7be3714ac2
83 files changed
+13832
-74
No files matched your search
@@ -119,7 +119,8 @@ function isLocale(value: string | null | undefined): value is Locale {
|
||||
value === "es" ||
|
||||
value === "it" ||
|
||||
value === "pl" ||
|
||||
value === "ko"
|
||||
value === "ko" ||
|
||||
value === "nl"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ const requestSchema = z
|
||||
.object({
|
||||
text: z.string().min(1).max(MAX_TEXT_LENGTH),
|
||||
/** Optional UI locale; informational hint for the model. */
|
||||
locale: z.enum(["en", "de", "es", "fr", "it", "pl", "ko"]).optional(),
|
||||
locale: z.enum(["en", "de", "es", "fr", "it", "pl", "ko", "nl"]).optional(),
|
||||
/**
|
||||
* Optional override of the reference date used to resolve relative
|
||||
* phrases ("tomorrow", "next Monday"). Defaults to the server's
|
||||
|
||||
@@ -33,7 +33,8 @@ function isLocale(value: string | null | undefined): value is Locale {
|
||||
value === "es" ||
|
||||
value === "it" ||
|
||||
value === "pl" ||
|
||||
value === "ko"
|
||||
value === "ko" ||
|
||||
value === "nl"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,8 @@ function isLocale(value: string | null | undefined): value is Locale {
|
||||
value === "es" ||
|
||||
value === "it" ||
|
||||
value === "pl" ||
|
||||
value === "ko"
|
||||
value === "ko" ||
|
||||
value === "nl"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user