Skip to content

Commit dcb5dee

Browse files
committed
feat: Allow our translate function to have arguments
1 parent 8aaaf42 commit dcb5dee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Translate.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { Translate } from './Primitives';
1+
import { TextContent, Translate } from './Primitives';
22

3-
export const _ = (value: string): Translate => ({
3+
export const _ = (value: string, ...args: Array<TextContent>): Translate => ({
44
translate: value,
5+
args,
56
});

0 commit comments

Comments
 (0)