We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a44676a commit f0ffd99Copy full SHA for f0ffd99
src/cli/translate.ts
@@ -553,9 +553,11 @@ export const translateCommand = new Command('translate')
553
additionalPrompts: sourceFrontmatter.i18n?.additionalPrompts,
554
})
555
556
- const newFrontmatter = { ...sourceFrontmatter, sourceSHA }
557
- delete newFrontmatter.i18n
558
- newFrontmatter.sourceSHA = sourceSHA
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ const { i18n: _, ...newFrontmatter } = {
+ ...sourceFrontmatter,
559
+ sourceSHA,
560
+ }
561
562
const { data, content } = matter(targetContent)
563
const typedData = data as I18nFrontmatter
0 commit comments