Skip to content

Commit 67e8e8a

Browse files
committed
fix: remove translations package in favor of sdk (#2020)
* fix: remove translations package in favor of sdk * fix: run install to update lockfile fix: upgrade sdk
1 parent 3053a68 commit 67e8e8a

31 files changed

Lines changed: 35 additions & 69 deletions

File tree

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@
6767
"@fastify/type-provider-typebox": "5.1.0",
6868
"@fastify/websocket": "11.0.2",
6969
"@graasp/etherpad-api": "2.1.1",
70-
"@graasp/sdk": "5.16.0",
71-
"@graasp/translations": "1.44.0",
70+
"@graasp/sdk": "5.16.3",
7271
"@rapideditor/country-coder": "5.4.0",
7372
"@sentry/node": "7.119.2",
7473
"@sentry/tracing": "7.120.3",

src/plugins/mailer/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { TFunction } from 'i18next';
22

3-
import { DEFAULT_LANG } from '@graasp/translations';
3+
import { DEFAULT_LANG } from '@graasp/sdk';
44

55
import i18next from '../../i18n';
66
import { TRANSLATIONS } from '../../langs/constants';

src/services/account/account.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { eq } from 'drizzle-orm/sql';
22
import { singleton } from 'tsyringe';
33

4-
import { DEFAULT_LANG } from '@graasp/translations';
4+
import { DEFAULT_LANG } from '@graasp/sdk';
55

66
import type { DBConnection } from '../../drizzle/db';
77
import { accountsTable, itemLoginSchemasTable } from '../../drizzle/schema';

src/services/account/errors.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { StatusCodes } from 'http-status-codes';
22

3-
import { ErrorFactory } from '@graasp/sdk';
4-
import { FAILURE_MESSAGES } from '@graasp/translations';
3+
import { ErrorFactory, FAILURE_MESSAGES } from '@graasp/sdk';
54

65
export const GraaspAccountError = ErrorFactory('graasp-plugin-account');
76

src/services/auth/plugins/magicLink/magicLink.controller.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import type { FastifyInstance } from 'fastify';
1010
import {
1111
ClientManager,
1212
Context,
13+
FAILURE_MESSAGES,
1314
HttpMethod,
1415
RecaptchaAction,
1516
type RecaptchaActionType,
1617
} from '@graasp/sdk';
17-
import { FAILURE_MESSAGES } from '@graasp/translations';
1818

1919
import build, { MOCK_CAPTCHA, clearDatabase } from '../../../../../test/app';
2020
import { seedFromJson } from '../../../../../test/mocks/seed';

src/services/auth/plugins/magicLink/magicLink.controller.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import fastifyPassport from '@fastify/passport';
44
import type { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox';
55
import type { PassportUser } from 'fastify';
66

7-
import { ClientManager, Context, RecaptchaAction } from '@graasp/sdk';
8-
import { DEFAULT_LANG } from '@graasp/translations';
7+
import { ClientManager, Context, DEFAULT_LANG, RecaptchaAction } from '@graasp/sdk';
98

109
import { resolveDependency } from '../../../../di/utils';
1110
import { db } from '../../../../drizzle/db';

src/services/auth/plugins/password/errors.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { StatusCodes } from 'http-status-codes';
22

3-
import { ErrorFactory } from '@graasp/sdk';
4-
import { FAILURE_MESSAGES } from '@graasp/translations';
3+
import { ErrorFactory, FAILURE_MESSAGES } from '@graasp/sdk';
54

65
export const GraaspPasswordError = ErrorFactory('graasp-plugin-password');
76

src/services/auth/plugins/password/password.controller.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import waitForExpect from 'wait-for-expect';
1010

1111
import type { FastifyInstance, LightMyRequestResponse } from 'fastify';
1212

13-
import { HttpMethod, RecaptchaAction } from '@graasp/sdk';
14-
import { FAILURE_MESSAGES } from '@graasp/translations';
13+
import { FAILURE_MESSAGES, HttpMethod, RecaptchaAction } from '@graasp/sdk';
1514

1615
import build, {
1716
MOCK_CAPTCHA,

src/services/file/utils/errors.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { StatusCodes } from 'http-status-codes';
22

3-
import { ErrorFactory } from '@graasp/sdk';
4-
import { FAILURE_MESSAGES } from '@graasp/translations';
3+
import { ErrorFactory, FAILURE_MESSAGES } from '@graasp/sdk';
54

65
import { PLUGIN_NAME } from './constants';
76

src/services/item/item.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { singleton } from 'tsyringe';
2121
import { v4 } from 'uuid';
2222

2323
import {
24+
DEFAULT_LANG,
2425
type ItemSettings,
2526
ItemType,
2627
MAX_ITEM_NAME_LENGTH,
@@ -32,7 +33,6 @@ import {
3233
getChildFromPath,
3334
getParentFromPath,
3435
} from '@graasp/sdk';
35-
import { DEFAULT_LANG } from '@graasp/translations';
3636

3737
import type { DBConnection } from '../../drizzle/db';
3838
import {

0 commit comments

Comments
 (0)