Skip to content

Conversation

@younocode
Copy link
Contributor

@younocode younocode commented Oct 28, 2025

  • add next-i18n package
  • email i18n
  • notification i18n

@younocode younocode added the preview This issue is already ready for preview label Oct 28, 2025
@github-actions
Copy link

Deployment Status: ❌ Failed

3 similar comments
@github-actions
Copy link

Deployment Status: ❌ Failed

@github-actions
Copy link

Deployment Status: ❌ Failed

@github-actions
Copy link

Deployment Status: ❌ Failed

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@younocode younocode force-pushed the feat/backend-i18n branch 2 times, most recently from 5ba4ca1 to 8e37e33 Compare October 29, 2025 02:27
@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

2 similar comments
@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

2 similar comments
@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@younocode younocode force-pushed the feat/backend-i18n branch 2 times, most recently from 371176b to 7cd6e21 Compare October 29, 2025 09:05
@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

3 similar comments
@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@younocode younocode added preview This issue is already ready for preview and removed preview This issue is already ready for preview labels Oct 29, 2025
@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

1 similar comment
@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@younocode younocode requested a review from Copilot October 30, 2025 10:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds internationalization (i18n) support to the application using the nestjs-i18n library. The implementation enables multi-language support for notifications, email templates, and user preferences.

  • Adds nestjs-i18n library (v10.5.1) for backend internationalization
  • Introduces user language preference storage in the database (lang field)
  • Converts hardcoded email templates and notifications to use i18n keys with translation files
  • Updates notification schema to support i18n messages (messageI18n field)

Reviewed Changes

Copilot reviewed 37 out of 38 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
pnpm-lock.yaml Adds nestjs-i18n package and related dependencies
packages/openapi/src/user/update-lang.ts New API endpoint for updating user language preference
packages/db-main-prisma/prisma/*.prisma Adds lang field to User model and messageI18n field to Notification model
packages/core/src/models/notification/notification.schema.ts Adds optional messageI18n field to notification schema
packages/common-i18n/src/locales/*/common.json Adds translation templates for emails and notifications
apps/nextjs-app/src/features/app/components/notifications/notification-component/LinkNotification.tsx Implements client-side i18n message rendering for notifications
apps/nextjs-app/src/features/app/components/LanguagePicker.tsx Updates language picker to call new API endpoint
apps/nestjs-backend/src/utils/i18n.ts Utility to resolve i18n locale path
apps/nestjs-backend/src/global/global.module.ts Configures i18n module with resolvers
apps/nestjs-backend/src/features/user/user.service.ts Adds user language update and sets default language on user creation
apps/nestjs-backend/src/features/notification/notification.service.ts Refactors to support i18n messages in notifications
apps/nestjs-backend/src/features/mail-sender/mail-sender.service.ts Converts email templates to use i18n keys
apps/nestjs-backend/src/features/import/open-api/*.ts Passes user language context to import jobs for localized notifications
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coveralls
Copy link
Collaborator

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

1 similar comment
@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@github-actions
Copy link

github-actions bot commented Nov 3, 2025

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@github-actions
Copy link

github-actions bot commented Nov 3, 2025

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

1 similar comment
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@github-actions
Copy link

github-actions bot commented Nov 3, 2025

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@younocode younocode requested a review from boris-w November 3, 2025 13:55
@github-actions
Copy link

github-actions bot commented Nov 6, 2025

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

1 similar comment
@github-actions
Copy link

github-actions bot commented Nov 6, 2025

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

@github-actions
Copy link

github-actions bot commented Nov 6, 2025

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2056.sealoshzh.site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview This issue is already ready for preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants