s00d / nuxt-i18n-micro

Nuxt I18n Micro is a fast, simple, and lightweight internationalization (i18n) module for Nuxt
https://s00d.github.io/nuxt-i18n-micro/
MIT License
87 stars 11 forks source link

[Bug report] Export type Locale #38

Closed polarove closed 1 month ago

polarove commented 1 month ago

Expected

Export type locale from the package, thus can be imported in nuxt projects

interface Locale {
  code: LocaleCode
  disabled?: boolean
  iso?: string
  dir?: 'ltr' | 'rtl' | 'auto'
}

What actually happenned

After run the command npm run prepack, the type Locale is not exported from the dist/module.d.ts or dist/module.d.mts

s00d commented 1 month ago

fixed! thx