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
|
@ -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,
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue