chore: update i18n module to 8.2.0 (#2703)

This commit is contained in:
Joaquín Sánchez 2024-03-21 13:13:28 +01:00 committed by GitHub
parent 0133324ded
commit b526db0860
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 19 deletions

View file

@ -1,5 +1,5 @@
import { Buffer } from 'node:buffer'
import flatten from 'flat'
import { flatten, unflatten } from 'flat'
import { createResolver } from '@nuxt/kit'
import fs from 'fs-extra'
import { currentLocales } from '../config/i18n'
@ -51,7 +51,7 @@ async function removeOutdatedTranslations() {
delete targetTranslations[key]
}
const unflattened = flatten.unflatten(targetTranslations)
const unflattened = unflatten(targetTranslations)
await fs.writeFile(
path,

View file

@ -1,5 +1,5 @@
import { Buffer } from 'node:buffer'
import flatten from 'flat'
import { flatten } from 'flat'
import { createResolver } from '@nuxt/kit'
import fs from 'fs-extra'
import { countryLocaleVariants, currentLocales } from '../config/i18n'