Implement internationalization for account settings and search components. Added translation support for various UI elements, including billing, notifications, and user dropdowns. Refactored search suggestions and no result messages to utilize localized text. Enhanced user experience by ensuring all relevant components display text based on selected language.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// Next Imports
|
||||
import type { Metadata } from 'next'
|
||||
import { getTranslations } from 'next-intl/server'
|
||||
|
||||
// Component Imports
|
||||
import Login from '@views/Login'
|
||||
@@ -7,9 +8,13 @@ import Login from '@views/Login'
|
||||
// Server Action Imports
|
||||
import { getServerMode } from '@core/utils/serverHelpers'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Login',
|
||||
description: 'Login to your account'
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const t = await getTranslations('login')
|
||||
|
||||
return {
|
||||
title: t('title'),
|
||||
description: t('description')
|
||||
}
|
||||
}
|
||||
|
||||
const LoginPage = async () => {
|
||||
|
||||
Reference in New Issue
Block a user