From caa4979e37591dd34b24112ff58fea1b9e4130d7 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 18 Oct 2017 14:43:18 +0100 Subject: [PATCH] Comment ignoring getTKey returning null --- scripts/gen-i18n.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/gen-i18n.js b/scripts/gen-i18n.js index e15263fb34..d3c92cc8f3 100644 --- a/scripts/gen-i18n.js +++ b/scripts/gen-i18n.js @@ -76,6 +76,8 @@ function getTranslations(file) { TRANSLATIONS_FUNCS.includes(node.callee.name) ) { const tKey = getTKey(node.arguments[0]); + // This happens whenever we call _t with non-literals (ie. whenever we've + // had to use a _td to compensate) so is expected. if (tKey === null) return; let isPlural = false;