From 2b9dfe8ce9ca10bca06d90ccca616fa80254fea0 Mon Sep 17 00:00:00 2001 From: Robert Sese <734194+rsese@users.noreply.github.com> Date: Fri, 23 Sep 2022 12:54:10 -0500 Subject: [PATCH] Fix translation batch workflow (#31081) --- script/i18n/fix-translation-errors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/i18n/fix-translation-errors.js b/script/i18n/fix-translation-errors.js index 07c61a436a..2d48e354dd 100755 --- a/script/i18n/fix-translation-errors.js +++ b/script/i18n/fix-translation-errors.js @@ -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/ 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