Fix translation batch workflow (#31081)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user