jointrashposs/i18n.config.ts
2023-12-02 14:55:18 +09:00

24 lines
No EOL
556 B
TypeScript

export default defineI18nConfig(() => ({
legacy: false,
fallbackLocale: ['en', 'ja'],
datetimeFormats: {
'en-US': {
short: {
year: 'numeric', month: 'short', day: 'numeric'
},
long: {
year: 'numeric', month: 'short', day: 'numeric',
weekday: 'short', hour: 'numeric', minute: 'numeric'
}
},
'ja-JP': {
short: {
year: 'numeric', month: 'short', day: 'numeric'
},
long: {
year: 'numeric', month: 'short', day: 'numeric',
weekday: 'short', hour: 'numeric', minute: 'numeric', hour12: true
}
}
}
}));