Skip to content

Commit 7c902ca

Browse files
committed
chore: fix useTranslation ci problem which cause error in unit test
1 parent c33dbd2 commit 7c902ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client/shared/i18n/__mocks__/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ export const t = (key: string) => {
33
};
44

55
export function onLanguageChanged() {}
6+
7+
export function useTranslation() {
8+
return { t };
9+
}

0 commit comments

Comments
 (0)