Skip to content

Commit

Permalink
feat: Add ts ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
jungpaeng committed Oct 1, 2023
1 parent bd8c4c0 commit 3eb6095
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/use-translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export function useTranslation(path?: string) {
cachedFormatByLocale[locale][idPath] = messageFormat;
}

return messageFormat.format(prepareTranslationValues(value));
return messageFormat.format(
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore It's working fine, but formatJS can't get a type for richText and is throwing an error.
prepareTranslationValues(value),
);
};
}

0 comments on commit 3eb6095

Please sign in to comment.