Skip to content

Commit a03d6ce

Browse files
committed
fix: allow inline optional inline translations
1 parent c98db6c commit a03d6ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/i18n/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ export type TranslationKey<TNamespace> = TNamespace extends TranslationNamespace
4747

4848
export interface TranslateFunction<TNamespace = undefined> {
4949
(key: TranslationKey<TNamespace>, ...args: Exclude<Primitive, symbol>[]): string;
50-
(translations: { [L in Language]: string }, ...args: Exclude<Primitive, symbol>[]): string;
50+
(translations: { [L in Language]?: string }, ...args: Exclude<Primitive, symbol>[]): string;
5151
}

0 commit comments

Comments
 (0)