web-app/src/i18n/locales/en.ts
padreug f02576d94a feat(i18n): Enhance internationalization with dynamic locale management
- Add comprehensive locale management with `useLocale` composable
- Implement dynamic locale loading and persistent storage
- Create type-safe internationalization infrastructure
- Add flag emojis and locale selection utilities
- Expand English locale with more comprehensive message schemas
2025-03-09 13:27:45 +01:00

54 lines
1 KiB
TypeScript

import type { LocaleMessages } from '../types'
const messages: LocaleMessages = {
nav: {
title: 'Application Title',
home: 'Home',
directory: 'Directory',
faq: 'FAQ',
support: 'Support',
login: 'Login',
logout: 'Logout'
},
common: {
loading: 'Loading...',
error: 'An error occurred',
success: 'Operation successful'
},
errors: {
notFound: 'Page not found',
serverError: 'Server error occurred',
networkError: 'Network connection error'
},
dateTimeFormats: {
short: {
year: 'numeric',
month: 'short',
day: 'numeric'
},
long: {
year: 'numeric',
month: 'long',
day: 'numeric',
weekday: 'long',
hour: 'numeric',
minute: 'numeric'
}
},
numberFormats: {
currency: {
style: 'currency',
currencyDisplay: 'symbol'
},
decimal: {
style: 'decimal',
minimumFractionDigits: 2
},
percent: {
style: 'percent',
useGrouping: false
}
}
}
export default messages