Skip to content

Commit dd6960e

Browse files
committed
fix(types): add type annotation for _translation variable in TransNoContext
1 parent 01fdd04 commit dd6960e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/TransNoContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function TransNoContext(
5454

5555
const { values, components } = getInterpolationValuesAndComponents(props)
5656

57-
const _translation =
57+
const _translation: string =
5858
i18n && typeof i18n._ === "function"
5959
? i18n._(id, values, { message, formats })
6060
: id // i18n provider isn't loaded at all

0 commit comments

Comments
 (0)