Skip to content

Commit 9adfefd

Browse files
fix: remove unused 'match.json' i18n
1 parent ccb9ba8 commit 9adfefd

File tree

9 files changed

+7
-20
lines changed

9 files changed

+7
-20
lines changed

locales/en/match.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

locales/en/match3rd.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"login-to-proxy-request": "You must be logged in to send requests for others",
3-
"phone": "Your phone number",
43
"students": "Who needs help?",
54
"subjects": "What would you like to learn?",
65
"time": "When would you like to meet?",

pages/[org]/calendar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { withI18n } from 'lib/intl';
1414

1515
import calendar from 'locales/en/calendar.json';
1616
import common from 'locales/en/common.json';
17-
import match from 'locales/en/match.json';
1817
import meeting from 'locales/en/meeting.json';
1918

2019
function OrgCalendarPage(props: PageProps): JSX.Element {
@@ -77,4 +76,4 @@ function OrgCalendarPage(props: PageProps): JSX.Element {
7776
export const getStaticProps = getPageProps;
7877
export const getStaticPaths = getPagePaths;
7978

80-
export default withI18n(OrgCalendarPage, { calendar, common, match, meeting });
79+
export default withI18n(OrgCalendarPage, { calendar, common, meeting });

pages/[org]/matches/[id].tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { useUser } from 'lib/context/user';
1818
import { withI18n } from 'lib/intl';
1919

2020
import common from 'locales/en/common.json';
21-
import match from 'locales/en/match.json';
2221
import matches from 'locales/en/matches.json';
2322

2423
function MatchDisplayPage(props: PageProps): JSX.Element {
@@ -76,4 +75,4 @@ function MatchDisplayPage(props: PageProps): JSX.Element {
7675
export const getStaticProps = getPageProps;
7776
export const getStaticPaths = getPagePaths;
7877

79-
export default withI18n(MatchDisplayPage, { common, match, matches });
78+
export default withI18n(MatchDisplayPage, { common, matches });

pages/[org]/matches/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { useUser } from 'lib/context/user';
1313
import { withI18n } from 'lib/intl';
1414

1515
import common from 'locales/en/common.json';
16-
import match from 'locales/en/match.json';
1716
import matches from 'locales/en/matches.json';
1817

1918
function MatchesPage(props: PageProps): JSX.Element {
@@ -76,4 +75,4 @@ function MatchesPage(props: PageProps): JSX.Element {
7675
export const getStaticProps = getPageProps;
7776
export const getStaticPaths = getPagePaths;
7877

79-
export default withI18n(MatchesPage, { common, match, matches });
78+
export default withI18n(MatchesPage, { common, matches });

pages/[org]/users/[id]/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { withI18n } from 'lib/intl';
2525
import common from 'locales/en/common.json';
2626
import error from 'locales/en/error.json';
2727
import match3rd from 'locales/en/match3rd.json';
28-
import user from 'locales/en/user.json';
28+
import user3rd from 'locales/en/user3rd.json';
2929

3030
// We send the `subjects` and `langs` of the user properly translated as props
3131
// so as to avoid a flash of invalid data (e.g. locale codes instead of labels).
@@ -161,4 +161,4 @@ export const getStaticPaths: GetStaticPaths<UserDisplayPageQuery> = async () =>
161161
return { paths: [], fallback: true };
162162
};
163163

164-
export default withI18n(UserDisplayPage, { common, error, match3rd, user });
164+
export default withI18n(UserDisplayPage, { common, error, match3rd, user3rd });

pages/[org]/users/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { useUser } from 'lib/context/user';
1313
import { withI18n } from 'lib/intl';
1414

1515
import common from 'locales/en/common.json';
16-
import match from 'locales/en/match.json';
1716
import query from 'locales/en/query.json';
1817
import user from 'locales/en/user.json';
1918
import users from 'locales/en/users.json';
@@ -83,6 +82,5 @@ export default withI18n(UsersPage, {
8382
search,
8483
query,
8584
user,
86-
match,
8785
request,
8886
});

pages/calendar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { withI18n } from 'lib/intl';
1010

1111
import calendar from 'locales/en/calendar.json';
1212
import common from 'locales/en/common.json';
13-
import match from 'locales/en/match.json';
1413
import meeting from 'locales/en/meeting.json';
1514

1615
function CalendarPage(props: PageProps): JSX.Element {
@@ -49,4 +48,4 @@ function CalendarPage(props: PageProps): JSX.Element {
4948

5049
export const getStaticProps = getPageProps;
5150

52-
export default withI18n(CalendarPage, { calendar, common, match, meeting });
51+
export default withI18n(CalendarPage, { calendar, common, meeting });

pages/matches.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import usePage from 'lib/hooks/page';
99
import { withI18n } from 'lib/intl';
1010

1111
import common from 'locales/en/common.json';
12-
import match from 'locales/en/match.json';
1312
import matches from 'locales/en/matches.json';
1413

1514
function MatchesPage(props: PageProps): JSX.Element {
@@ -48,4 +47,4 @@ function MatchesPage(props: PageProps): JSX.Element {
4847

4948
export const getStaticProps = getPageProps;
5049

51-
export default withI18n(MatchesPage, { common, match, matches });
50+
export default withI18n(MatchesPage, { common, matches });

0 commit comments

Comments
 (0)