Skip to content

Commit

Permalink
fix: Allow usage of getTranslations({namespace}) without TypeScript…
Browse files Browse the repository at this point in the history
… integration for messages (#630)

Fixes #625
  • Loading branch information
amannn committed Nov 15, 2023
1 parent 2bb9c0b commit 62cf29c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/next-intl/src/server/getTranslations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Promise<{
>
>
>(
key: TargetKey,
key: [TargetKey] extends [never] ? string : TargetKey,
values?: TranslationValues,
formats?: Partial<Formats>
): string;
Expand All @@ -61,7 +61,7 @@ Promise<{
>
>
>(
key: TargetKey,
key: [TargetKey] extends [never] ? string : TargetKey,
values?: RichTranslationValues,
formats?: Partial<Formats>
): string | ReactElement | ReactNodeArray;
Expand All @@ -81,7 +81,7 @@ Promise<{
>
>
>(
key: TargetKey,
key: [TargetKey] extends [never] ? string : TargetKey,
values?: MarkupTranslationValues,
formats?: Partial<Formats>
): string;
Expand All @@ -101,7 +101,7 @@ Promise<{
>
>
>(
key: TargetKey
key: [TargetKey] extends [never] ? string : TargetKey
): any;
}>;
function getTranslations<
Expand Down

2 comments on commit 62cf29c

@vercel
Copy link

@vercel vercel bot commented on 62cf29c Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 62cf29c Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-intl-docs – ./docs

next-intl-docs.vercel.app
next-intl-docs-next-intl.vercel.app
next-intl-docs-git-main-next-intl.vercel.app

Please sign in to comment.