1
0
mirror of synced 2025-12-22 19:34:15 -05:00

Fix translation batch workflow (#31081)

This commit is contained in:
Robert Sese
2022-09-23 12:54:10 -05:00
committed by GitHub
parent 8de1b90f16
commit 2b9dfe8ce9

View File

@@ -16,7 +16,7 @@ import fm from '../../lib/frontmatter.js'
import matter from 'gray-matter'
import chalk from 'chalk'
import yaml from 'js-yaml'
import ghesReleaseNotesSchema from '../../tests/helpers/schemas/ghes-release-notes-schema.js'
import releaseNotesSchema from '../../tests/helpers/schemas/release-notes-schema.js'
import revalidator from 'revalidator'
main()
@@ -66,7 +66,7 @@ async function main() {
// find the corresponding english file by removing the first 2 path segments: /translation/<language code>
const engAbsPath = relPath.split(path.sep).slice(2).join(path.sep)
const localisedResult = await loadAndValidateContent(relPath, ghesReleaseNotesSchema)
const localisedResult = await loadAndValidateContent(relPath, releaseNotesSchema)
if (!localisedResult) continue
const { data, errors, content } = localisedResult