- Add a "Chat" link to the main navigation for both desktop and mobile views. - Include a message icon for visual identification and support for multiple languages (English, Spanish, French). - Update documentation to reflect navigation integration and usage instructions for the chat feature.
63 lines
No EOL
1.1 KiB
TypeScript
63 lines
No EOL
1.1 KiB
TypeScript
export interface LocaleMessages {
|
|
nav: {
|
|
title: string
|
|
home: string
|
|
directory: string
|
|
faq: string
|
|
events: string
|
|
market: string
|
|
chat: string
|
|
login: string
|
|
logout: string
|
|
}
|
|
// Add more message categories here
|
|
common: {
|
|
loading: string
|
|
error: string
|
|
success: string
|
|
}
|
|
errors: {
|
|
notFound: string
|
|
serverError: string
|
|
networkError: string
|
|
}
|
|
// Language names in the current language
|
|
locales: {
|
|
en: string
|
|
es: string
|
|
fr: string
|
|
de: string
|
|
zh: string
|
|
}
|
|
// Add date/time formats
|
|
dateTimeFormats: {
|
|
short: {
|
|
year: 'numeric'
|
|
month: 'short'
|
|
day: 'numeric'
|
|
}
|
|
long: {
|
|
year: 'numeric'
|
|
month: 'long'
|
|
day: 'numeric'
|
|
weekday: 'long'
|
|
hour: 'numeric'
|
|
minute: 'numeric'
|
|
}
|
|
}
|
|
// Add number formats
|
|
numberFormats: {
|
|
currency: {
|
|
style: 'currency'
|
|
currencyDisplay: 'symbol'
|
|
}
|
|
decimal: {
|
|
style: 'decimal'
|
|
minimumFractionDigits: 2
|
|
}
|
|
percent: {
|
|
style: 'percent'
|
|
useGrouping: false
|
|
}
|
|
}
|
|
}
|