dallyh / website-concept

0 stars 0 forks source link

`astro-i18n-aut` upgrade #1

Closed jlarmstrongiv closed 1 year ago

jlarmstrongiv commented 1 year ago

Just two features I thought you’d like in the latest version:

import {
  locales,
  localeKeys,
  defaultLocale,
  getLocale,
  getAllLocaleUrls,
  getLocaleUrl,
  getUrlWithoutLocale,
} from "astro-i18n-aut"

getLocales is no longer needed, since you can now import defaultLocale, locales, and localeKeys from the package directly

You no longer need getLocaleEx since getLocale now returns the defaultLocale

Anyway, it’s nice to see others use the astro-i18n-aut so I can see what changes would be helpful 😄

dallyh commented 1 year ago

@jlarmstrongiv Amazing! Thanks for this. I didn't find this info in your docs, maybe adding it as a section of what you can import could help some other people too 😁

jlarmstrongiv commented 1 year ago

@dallyh Planning to 😄 I’m waiting on another core astro bug to see why my virtual modules aren’t refreshing when the config changes. They have their hands pretty full with the v3 release at the moment though