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 105045a commit 5c3787cCopy full SHA for 5c3787c
apps/site/tests/mocks/next-intl.jsx
@@ -1,13 +1,6 @@
1
'use strict';
2
3
-export const useTranslations = () => {
4
- const t = key => key;
5
-
6
- t.rich = key => key;
7
- t.markup = key => key;
8
9
- return t;
10
-};
+export const useTranslations = () => key => key;
11
12
export const useFormatter = () => {
13
const formatter = format => new Intl.DateTimeFormat('en-US', format);
@@ -20,7 +13,4 @@ export const useFormatter = () => {
20
21
14
export const createNavigation = () => ({
22
15
Link: props => <a {...props} onClick={e => e.preventDefault()} />,
23
- redirect: () => void null,
24
- usePathname: () => '',
25
- useRouter: () => ({ push: () => void null, replace: () => void null }),
26
16
});
0 commit comments