Skip to content

Commit

Permalink
Fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejkustra committed Oct 31, 2023
1 parent 7c68bde commit 1a569e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/Localize/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function translateIfPhraseKey(message: string | [string, Record<string, unknown>
return phrase;
}

return translateLocal(phrase as TranslationPaths, ...(variables as PhraseParameters<Phrase<TranslationPaths>>));
return translateLocal(phrase as TranslationPaths, variables as never);
} catch (error) {
return Array.isArray(message) ? message[0] : message;
}
Expand Down

0 comments on commit 1a569e4

Please sign in to comment.