forked from Mirrors/elk
chore: update i18n module to 8.2.0 (#2703)
This commit is contained in:
parent
0133324ded
commit
b526db0860
4 changed files with 12 additions and 19 deletions
|
@ -40,7 +40,7 @@
|
||||||
"@nuxt/devtools": "^1.0.8",
|
"@nuxt/devtools": "^1.0.8",
|
||||||
"@nuxt/test-utils": "^3.12.0",
|
"@nuxt/test-utils": "^3.12.0",
|
||||||
"@nuxtjs/color-mode": "^3.3.2",
|
"@nuxtjs/color-mode": "^3.3.2",
|
||||||
"@nuxtjs/i18n": "^8.1.1",
|
"@nuxtjs/i18n": "^8.2.0",
|
||||||
"@pinia/nuxt": "^0.5.1",
|
"@pinia/nuxt": "^0.5.1",
|
||||||
"@tiptap/core": "2.2.4",
|
"@tiptap/core": "2.2.4",
|
||||||
"@tiptap/extension-bold": "2.2.4",
|
"@tiptap/extension-bold": "2.2.4",
|
||||||
|
@ -116,7 +116,6 @@
|
||||||
"@antfu/ni": "^0.21.12",
|
"@antfu/ni": "^0.21.12",
|
||||||
"@types/chroma-js": "^2.4.4",
|
"@types/chroma-js": "^2.4.4",
|
||||||
"@types/file-saver": "^2.0.7",
|
"@types/file-saver": "^2.0.7",
|
||||||
"@types/flat": "^5.0.5",
|
|
||||||
"@types/fnando__sparkline": "^0.3.7",
|
"@types/fnando__sparkline": "^0.3.7",
|
||||||
"@types/fs-extra": "^11.0.4",
|
"@types/fs-extra": "^11.0.4",
|
||||||
"@types/js-yaml": "^4.0.9",
|
"@types/js-yaml": "^4.0.9",
|
||||||
|
@ -130,7 +129,7 @@
|
||||||
"consola": "^3.2.3",
|
"consola": "^3.2.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-plugin-format": "^0.1.0",
|
"eslint-plugin-format": "^0.1.0",
|
||||||
"flat": "^5.0.2",
|
"flat": "^6.0.1",
|
||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"lint-staged": "^14.0.1",
|
"lint-staged": "^14.0.1",
|
||||||
"nuxt": "^3.11.1",
|
"nuxt": "^3.11.1",
|
||||||
|
|
|
@ -43,8 +43,8 @@ importers:
|
||||||
specifier: ^3.3.2
|
specifier: ^3.3.2
|
||||||
version: 3.3.2(rollup@4.13.0)
|
version: 3.3.2(rollup@4.13.0)
|
||||||
'@nuxtjs/i18n':
|
'@nuxtjs/i18n':
|
||||||
specifier: ^8.1.1
|
specifier: ^8.2.0
|
||||||
version: 8.1.1(rollup@4.13.0)(vue@3.4.21)
|
version: 8.2.0(rollup@4.13.0)(vue@3.4.21)
|
||||||
'@pinia/nuxt':
|
'@pinia/nuxt':
|
||||||
specifier: ^0.5.1
|
specifier: ^0.5.1
|
||||||
version: 0.5.1(rollup@4.13.0)(typescript@5.4.2)(vue@3.4.21)
|
version: 0.5.1(rollup@4.13.0)(typescript@5.4.2)(vue@3.4.21)
|
||||||
|
@ -265,9 +265,6 @@ importers:
|
||||||
'@types/file-saver':
|
'@types/file-saver':
|
||||||
specifier: ^2.0.7
|
specifier: ^2.0.7
|
||||||
version: 2.0.7
|
version: 2.0.7
|
||||||
'@types/flat':
|
|
||||||
specifier: ^5.0.5
|
|
||||||
version: 5.0.5
|
|
||||||
'@types/fnando__sparkline':
|
'@types/fnando__sparkline':
|
||||||
specifier: ^0.3.7
|
specifier: ^0.3.7
|
||||||
version: 0.3.7
|
version: 0.3.7
|
||||||
|
@ -308,8 +305,8 @@ importers:
|
||||||
specifier: ^0.1.0
|
specifier: ^0.1.0
|
||||||
version: 0.1.0(eslint@8.57.0)
|
version: 0.1.0(eslint@8.57.0)
|
||||||
flat:
|
flat:
|
||||||
specifier: ^5.0.2
|
specifier: ^6.0.1
|
||||||
version: 5.0.2
|
version: 6.0.1
|
||||||
fs-extra:
|
fs-extra:
|
||||||
specifier: ^11.2.0
|
specifier: ^11.2.0
|
||||||
version: 11.2.0
|
version: 11.2.0
|
||||||
|
@ -3647,8 +3644,8 @@ packages:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@nuxtjs/i18n@8.1.1(rollup@4.13.0)(vue@3.4.21):
|
/@nuxtjs/i18n@8.2.0(rollup@4.13.0)(vue@3.4.21):
|
||||||
resolution: {integrity: sha512-woq2gdXv+soVRc2yeE2pwWODiLnF7fx1eAEXi5Zx+StQDxHegAHTbKX/ZqcsW8VZ3mqlcpzfqN399KCZ9qXJ8g==}
|
resolution: {integrity: sha512-t37aF/WOD1g8CA/iCyCJrURXocjPy7diZG+kJcHLkLmJh1v4/2Zhe0AeUsjXubGgvQKLSL3b5w8rZuPkG4yhUw==}
|
||||||
engines: {node: ^14.16.0 || >=16.11.0}
|
engines: {node: ^14.16.0 || >=16.11.0}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@intlify/h3': 0.5.0
|
'@intlify/h3': 0.5.0
|
||||||
|
@ -3667,6 +3664,7 @@ packages:
|
||||||
magic-string: 0.30.8
|
magic-string: 0.30.8
|
||||||
mlly: 1.6.1
|
mlly: 1.6.1
|
||||||
pathe: 1.1.2
|
pathe: 1.1.2
|
||||||
|
scule: 1.3.0
|
||||||
sucrase: 3.35.0
|
sucrase: 3.35.0
|
||||||
ufo: 1.5.2
|
ufo: 1.5.2
|
||||||
unplugin: 1.10.0
|
unplugin: 1.10.0
|
||||||
|
@ -4776,10 +4774,6 @@ packages:
|
||||||
resolution: {integrity: sha512-dNKVfHd/jk0SkR/exKGj2ggkB45MAkzvWCaqLUUgkyjITkGNzH8H+yUwr+BLJUBjZOe9w8X3wgmXhZDRg1ED6A==}
|
resolution: {integrity: sha512-dNKVfHd/jk0SkR/exKGj2ggkB45MAkzvWCaqLUUgkyjITkGNzH8H+yUwr+BLJUBjZOe9w8X3wgmXhZDRg1ED6A==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@types/flat@5.0.5:
|
|
||||||
resolution: {integrity: sha512-nPLljZQKSnac53KDUDzuzdRfGI0TDb5qPrb+SrQyN3MtdQrOnGsKniHN1iYZsJEBIVQve94Y6gNz22sgISZq+Q==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@types/fnando__sparkline@0.3.7:
|
/@types/fnando__sparkline@0.3.7:
|
||||||
resolution: {integrity: sha512-irYrS2clNGbnKBBIBAulPH6hDZ/HlBkNsDbYPfO8B2obcxtC9UzKFS5IBSzrUtfKbwf8U01xHj+5iEJ7TtY04Q==}
|
resolution: {integrity: sha512-irYrS2clNGbnKBBIBAulPH6hDZ/HlBkNsDbYPfO8B2obcxtC9UzKFS5IBSzrUtfKbwf8U01xHj+5iEJ7TtY04Q==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Buffer } from 'node:buffer'
|
import { Buffer } from 'node:buffer'
|
||||||
import flatten from 'flat'
|
import { flatten, unflatten } from 'flat'
|
||||||
import { createResolver } from '@nuxt/kit'
|
import { createResolver } from '@nuxt/kit'
|
||||||
import fs from 'fs-extra'
|
import fs from 'fs-extra'
|
||||||
import { currentLocales } from '../config/i18n'
|
import { currentLocales } from '../config/i18n'
|
||||||
|
@ -51,7 +51,7 @@ async function removeOutdatedTranslations() {
|
||||||
delete targetTranslations[key]
|
delete targetTranslations[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
const unflattened = flatten.unflatten(targetTranslations)
|
const unflattened = unflatten(targetTranslations)
|
||||||
|
|
||||||
await fs.writeFile(
|
await fs.writeFile(
|
||||||
path,
|
path,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Buffer } from 'node:buffer'
|
import { Buffer } from 'node:buffer'
|
||||||
import flatten from 'flat'
|
import { flatten } from 'flat'
|
||||||
import { createResolver } from '@nuxt/kit'
|
import { createResolver } from '@nuxt/kit'
|
||||||
import fs from 'fs-extra'
|
import fs from 'fs-extra'
|
||||||
import { countryLocaleVariants, currentLocales } from '../config/i18n'
|
import { countryLocaleVariants, currentLocales } from '../config/i18n'
|
||||||
|
|
Loading…
Reference in a new issue