i18n.config.ts 662 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { defineI18nConfig } from '#i18n'
  2. export default defineI18nConfig(() => ({
  3. legacy: false,
  4. datetimeFormats: {
  5. fr: {
  6. short: {
  7. year: 'numeric',
  8. month: 'numeric',
  9. day: 'numeric',
  10. },
  11. long: {
  12. year: 'numeric',
  13. month: 'numeric',
  14. day: 'numeric',
  15. hour: 'numeric',
  16. minute: 'numeric',
  17. },
  18. },
  19. en: {
  20. short: {
  21. year: 'numeric',
  22. month: 'numeric',
  23. day: 'numeric',
  24. },
  25. long: {
  26. year: 'numeric',
  27. month: 'numeric',
  28. day: 'numeric',
  29. hour: 'numeric',
  30. minute: 'numeric',
  31. },
  32. },
  33. },
  34. }))