Compare commits

...
8 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ This monorepo hosts the VIntl for Nuxt module as well as other projects that hel
### Apps
- [Playground](https://github.com/vintl-dev/nuxt/tree/main/apps/playground) 🔒
- [Docs](https://github.com/vintl-dev/nuxt/tree/main/apps/docs) 🔒 [🌐](https://vintl-nuxt.vercel.app/)
- [Docs](https://github.com/vintl-dev/nuxt/tree/main/apps/docs) 🔒 [🌐](https://vintl-nuxt.netlify.app/)
### Packages
+1 -1
View File
@@ -2,7 +2,7 @@ export default defineAppConfig({
docus: {
title: 'VIntl for Nuxt',
description: 'Internationalization for your Nuxt apps',
url: 'http://vintl-nuxt.vercel.app',
url: 'https://vintl-nuxt.netlify.app',
// image: '/social-card-preview.png',
socials: {
github: 'vintl-dev/nuxt',
@@ -45,7 +45,8 @@ Message descriptors are objects that describe a message and its properties. The
- `description` (optional): A description of the message for translators.
::alert{type="warning"}
VIntl for Nuxt currently does not transpile the descriptors during the build, leaving `description` property as is, meaning they will pointlessly increase bundle size. If you really want to use them, look into wiring up [Babel plugin by FormatJS][babel_plugin].
Note that VIntl for Nuxt does not currently transpile code during the build process. This means that any `description` properties of message descriptors will remain unchanged, needlessly increasing the bundle size. If you must use `description` properties, we recommend using the [Babel plugin by FormatJS][babel_plugin] to remove them.
[babel_plugin]: https://formatjs.io/docs/tooling/babel-plugin
+12
View File
@@ -1,5 +1,17 @@
# @vintl/nuxt
## 1.1.3
### Patch Changes
- 25b5acf: Don't require additionalImports to be a non-empty array
## 1.1.2
### Patch Changes
- 71b9000: Fix object import sources not resolving by default
## 1.1.1
### Patch Changes
+1 -1
View File
@@ -36,7 +36,7 @@ Store your users preferences with cookies, localStorage, or with the custom stor
## Documentation
Check out the [VIntl for Nuxt documentation site](https://vintl-nuxt.vercel.app/) for detailed usage instructions and examples.
Check out the [VIntl for Nuxt documentation site](https://vintl-nuxt.netlify.app/) for detailed usage instructions and examples.
## Credits
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@vintl/nuxt",
"version": "1.1.1",
"version": "1.1.3",
"description": "Nuxt Module for VIntl integration",
"keywords": [
"i18n",
+1 -1
View File
@@ -16,7 +16,7 @@ export const importSourceObjectSchema = t.object({
.default('default'),
/** Whether to resolve the import to a path or import as is. */
resolve: t.boolean().optional(),
resolve: t.boolean().default(true),
})
/** A schema for the tuple consisting of an import path and a custom export name. */
@@ -68,7 +68,6 @@ export const localeDescriptorSchema = t
.describe(
'List of additional side-effect only imports (like polyfill data)',
)
.nonempty()
.optional(),
/**