Removed comment

This commit is contained in:
vjrj 2018-01-30 07:31:16 +01:00
parent 52e7e71a5c
commit e27657be6b

View file

@ -15,10 +15,10 @@ export const getFileNameOfLang = (dir, fileName, ext, lang) => {
const fallback = getFallbackLang(lang); const fallback = getFallbackLang(lang);
let file = `${base}-${lang}.${ext}`; let file = `${base}-${lang}.${ext}`;
if (!fs.existsSync(as(file))) { if (!fs.existsSync(as(file))) {
console.log(`Page '${fileName}' not found for '${lang}' lang`); // console.log(`Page '${fileName}' not found for '${lang}' lang`);
file = `${base}-${fallback}.${ext}`; file = `${base}-${fallback}.${ext}`;
if (!fs.existsSync(as(file))) { if (!fs.existsSync(as(file))) {
console.log(`Page '${fileName}' not found for '${fallback}' lang`); // console.log(`Page '${fileName}' not found for '${fallback}' lang`);
file = `${base}.${ext}`; file = `${base}.${ext}`;
} }
} }