Skip to content

Commit 9a1c557

Browse files
committed
chore: added localize to strings
1 parent a26f0d7 commit 9a1c557

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/bot-web-ui/src/components/bot-notification/__tests__/bot-notification.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('BotNotification', () => {
3030
</StoreProvider>
3131
);
3232
});
33-
it('should render BotNotification with correct message', () => {
33+
it('should render NotificationContent component', () => {
3434
const { container } = render(<NotificationContent message='' />, {
3535
wrapper,
3636
});

packages/bot-web-ui/src/components/bot-notification/bot-notification-utils.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// eslint-disable-next-line import/no-extraneous-dependencies
22
import { toast, ToastPosition, TypeOptions } from 'react-toastify';
3+
import { localize } from '@deriv/translations';
34

45
export type TNotificationContent = {
56
message: string;
@@ -27,10 +28,10 @@ export enum NOTIFICATION_TYPE {
2728
}
2829

2930
export const notification_message = {
30-
bot_stop: 'You’ve just stopped the bot. Any open contracts can be viewed on the Reports page',
31-
workspace_change: 'Changes you make will not affect your running bot.',
32-
[NOTIFICATION_TYPE.BOT_IMPORT]: 'You’ve successfully imported a bot.',
33-
[NOTIFICATION_TYPE.BOT_DELETE]: 'You’ve successfully deleted a bot.',
31+
bot_stop: localize('You’ve just stopped the bot. Any open contracts can be viewed on the Reports page.'),
32+
workspace_change: localize('Changes you make will not affect your running bot.'),
33+
[NOTIFICATION_TYPE.BOT_IMPORT]: localize('You’ve successfully imported a bot.'),
34+
[NOTIFICATION_TYPE.BOT_DELETE]: localize('You’ve successfully deleted a bot.'),
3435
};
3536

3637
export const notification_style = {

0 commit comments

Comments
 (0)