Compare commits

...
9 changed files with 33 additions and 11 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
+22
View File
@@ -1,5 +1,27 @@
# @vintl/nuxt
## 1.1.4
### Patch Changes
- 8f4ca76: Fix compatibility with newer versions of Nuxt
It seems that TypeScript has a trouble identifying similar types from different packages, which caused it to disregard any types from VIntl.
Now that the `@nuxt/schema` is moved to `devDependencies` (since it's used for types only anyway), and doesn't have to strictly match the version, this should be fixed.
## 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
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@vintl/nuxt",
"version": "1.1.1",
"version": "1.1.4",
"description": "Nuxt Module for VIntl integration",
"keywords": [
"i18n",
@@ -40,6 +40,7 @@
},
"devDependencies": {
"@nuxt/module-builder": "^0.3.0",
"@nuxt/schema": "^3.4.2",
"@types/hash-sum": "^1.0.0",
"@types/node": "^18.15.12",
"@unhead/vue": "^1.1.26",
@@ -51,7 +52,6 @@
"dependencies": {
"@formatjs/intl": "^2.7.1",
"@nuxt/kit": "^3.4.2",
"@nuxt/schema": "^3.4.2",
"@vintl/unplugin": "^1.2.1",
"@vintl/vintl": "^4.1.2",
"astring": "^1.8.4",
+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(),
/**
+3 -3
View File
@@ -101,9 +101,6 @@ importers:
'@nuxt/kit':
specifier: ^3.4.2
version: 3.4.2(esbuild@0.17.17)(rollup@3.20.7)
'@nuxt/schema':
specifier: ^3.4.2
version: 3.4.2(rollup@3.20.7)
'@vintl/unplugin':
specifier: ^1.2.1
version: 1.2.1(rollup@3.20.7)(webpack@5.80.0)
@@ -135,6 +132,9 @@ importers:
'@nuxt/module-builder':
specifier: ^0.3.0
version: 0.3.0
'@nuxt/schema':
specifier: ^3.4.2
version: 3.4.2(rollup@3.20.7)
'@types/hash-sum':
specifier: ^1.0.0
version: 1.0.0