From f023df6a873956e1df2899aa23cafb2cb0538d46 Mon Sep 17 00:00:00 2001 From: Matteias Collet Date: Fri, 10 Jul 2020 05:29:07 +0200 Subject: [PATCH] typo --- scripts/compare_translations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compare_translations.js b/scripts/compare_translations.js index 038a509..2a82c11 100644 --- a/scripts/compare_translations.js +++ b/scripts/compare_translations.js @@ -2,7 +2,7 @@ const path = require('path'); const locales = require(path.join(__dirname, '../site/.vuepress/i18n/locales.json')); /** - * Gets all leave nodes from the specified object + * Gets all leaf nodes from the specified object * @param {*} node The root node * @param {*} path The already visited path */ @@ -39,7 +39,7 @@ const translations = Object.keys(locales).map((locale) => ({ const defaultTranslation = translations.find((t) => t.lang === locales['/'].lang); console.log(`Default translation set to ${defaultTranslation.lang}`); -// Holds the paths to all leave nodes of the default translation +// Holds the paths to all leaf nodes of the default translation const leavePaths = []; getLeaves(defaultTranslation.values); console.log('Detected translations: ', leavePaths);