We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f106d commit 50db714Copy full SHA for 50db714
src/localisation.ts
@@ -1,4 +1,4 @@
1
-import { type CustomTextDefinitions, type CustomTextFunction, type NodeData } from './types'
+import { type CustomTextDefinitions, type NodeData } from './types'
2
3
const localisedStrings = {
4
ITEM_SINGLE: '{{count}} item',
@@ -28,7 +28,7 @@ const translate = (
28
count?: number
29
): string => {
30
if (customText[key]) {
31
- const output = (customText[key] as CustomTextFunction)(customTextData)
+ const output = customText[key](customTextData)
32
if (output !== null) return output
33
}
34
0 commit comments