i18n.config.ts 784 B

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