From 4487c4e2af747bbaf43adefd370fa80a935604fd Mon Sep 17 00:00:00 2001 From: Felix Schneider Date: Fri, 11 Jul 2025 19:36:33 +0200 Subject: i18n(de): update `guides/i18n.mdx` (#3289) --- docs/src/content/docs/de/guides/i18n.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/content/docs/de/guides/i18n.mdx b/docs/src/content/docs/de/guides/i18n.mdx index 3020c265..444e20d5 100644 --- a/docs/src/content/docs/de/guides/i18n.mdx +++ b/docs/src/content/docs/de/guides/i18n.mdx @@ -360,15 +360,15 @@ const allStrings = Astro.locals.t.all(); #### `t.exists()` -Um zu überprüfen, ob ein Übersetzungs­schlüssel für eine Sprache existiert, verwende die Funktion `locals.t.exists()` mit dem Übersetzungs­schlüssel als erstem Argument. -Übergib ein optionales zweites Argument, wenn du die aktuelle Sprache neu definieren musst. +Um zu überprüfen, ob ein Übersetzungs­schlüssel existiert, verwende die Funktion `locals.t.exists()` mit dem Übersetzungs­schlüssel als erstem Argument. +Gib ein optionales zweites Argument an, wenn du überprüfen möchtest, ob eine Übersetzung für eine bestimmte Sprache vorhanden ist. ```astro --- // src/components/Example.astro -const keyExistsInCurrentLocale = Astro.locals.t.exists('a.key'); +const keyExists = Astro.locals.t.exists('a.key'); // ^ true -const keyExistsInFrench = Astro.locals.t.exists('another.key', { lng: 'fr' }); +const keyExistsInFrench = Astro.locals.t.exists('other.key', { lngs: ['fr'] }); // ^ false --- ``` -- cgit