jointrashposs/i18n.config.ts

24 lines
556 B
TypeScript
Raw Permalink Normal View History

2023-07-08 10:36:02 +02:00
export default defineI18nConfig(() => ({
legacy: false,
2023-12-02 06:55:18 +01:00
fallbackLocale: ['en', 'ja'],
2023-07-10 19:54:13 +02:00
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
}
}
2023-07-08 10:36:02 +02:00
}
}));