From 70a28cc5286eff5dda80ee77adc9bc8463fe913e Mon Sep 17 00:00:00 2001 From: "Nicholas Carrigan (he/him)" Date: Wed, 14 Apr 2021 21:01:18 -0700 Subject: [PATCH] fix(tools): i18n schema linting (#41823) --- client/i18n/schema-validation.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/i18n/schema-validation.js b/client/i18n/schema-validation.js index d4505c68b8..f7e77a3956 100644 --- a/client/i18n/schema-validation.js +++ b/client/i18n/schema-validation.js @@ -221,8 +221,8 @@ const introSchemaValidation = languages => { const filePath = path.join(__dirname, `/locales/${language}/intro.json`); const fileJson = require(filePath); const fileKeys = Object.keys(flattenAnObject(fileJson)); - findMissingKeys(fileKeys, linksSchemaKeys, `${language}/intro.json`); - findExtraneousKeys(fileKeys, linksSchemaKeys, `${language}/intro.json`); + findMissingKeys(fileKeys, introSchemaKeys, `${language}/intro.json`); + findExtraneousKeys(fileKeys, introSchemaKeys, `${language}/intro.json`); const emptyKeys = noEmptyObjectValues(fileJson); if (emptyKeys.length) { console.warn( @@ -264,8 +264,8 @@ const linksSchemaValidation = languages => { const filePath = path.join(__dirname, `/locales/${language}/links.json`); const fileJson = require(filePath); const fileKeys = Object.keys(flattenAnObject(fileJson)); - findMissingKeys(fileKeys, introSchemaKeys, `${language}/links.json`); - findExtraneousKeys(fileKeys, introSchemaKeys, `${language}/links.json`); + findMissingKeys(fileKeys, linksSchemaKeys, `${language}/links.json`); + findExtraneousKeys(fileKeys, linksSchemaKeys, `${language}/links.json`); const emptyKeys = noEmptyObjectValues(fileJson); if (emptyKeys.length) { console.warn(