- Integrated `@hookform/resolvers` and `@radix-ui/react-avatar` for improved form handling and avatar components. - Updated Tailwind CSS configuration and global styles for better responsiveness and accessibility. - Refactored layout components to include `I18nProvider` for dynamic language support. - Enhanced various UI elements with translated strings for better user experience. - Improved error handling and validation messages in forms to support localization. These changes aim to provide a more inclusive and user-friendly experience in the web-admin application.
17 lines
499 B
JavaScript
17 lines
499 B
JavaScript
/** @type {import('next-intl').NextIntlConfig} */
|
|
module.exports = {
|
|
// EN: Other locales you want to support
|
|
// VI: Các ngôn ngữ khác bạn muốn hỗ trợ
|
|
locales: ['en', 'vi'],
|
|
|
|
// EN: Used when no locale matches
|
|
// VI: Được sử dụng khi không có locale nào khớp
|
|
defaultLocale: 'en',
|
|
|
|
// EN: Path to the locale files
|
|
// VI: Đường dẫn đến các file locale
|
|
messages: {
|
|
en: './src/i18n/messages/en.json',
|
|
vi: './src/i18n/messages/vi.json'
|
|
}
|
|
}; |