Skip to content

Commit 50db714

Browse files
committed
Update localisation.ts
1 parent 96f106d commit 50db714

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/localisation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type CustomTextDefinitions, type CustomTextFunction, type NodeData } from './types'
1+
import { type CustomTextDefinitions, type NodeData } from './types'
22

33
const localisedStrings = {
44
ITEM_SINGLE: '{{count}} item',
@@ -28,7 +28,7 @@ const translate = (
2828
count?: number
2929
): string => {
3030
if (customText[key]) {
31-
const output = (customText[key] as CustomTextFunction)(customTextData)
31+
const output = customText[key](customTextData)
3232
if (output !== null) return output
3333
}
3434

0 commit comments

Comments
 (0)