From 497b24d7a6206eae014e085054c12ccb78432588 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 17 Mar 2017 14:13:11 -0700 Subject: [PATCH] lint: Ban use of i18n.t in portico js. --- tools/lint-all | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/lint-all b/tools/lint-all index f40d0100fe..8a43081656 100755 --- a/tools/lint-all +++ b/tools/lint-all @@ -282,6 +282,9 @@ def build_custom_checkers(by_lang): 'frontend_tests/node_tests', 'static/js/debug.js']), 'description': 'console.log and similar should not be used in webapp'}, + {'pattern': 'i18n[.]t', + 'include_only': set(['static/js/portico']), + 'description': 'i18n.t is not available in portico pages yet'}, {'pattern': '[.]text\(["\'][a-zA-Z]', 'description': 'Strings passed to $().text should be wrapped in i18n.t() for internationalization'}, {'pattern': 'compose_error\(["\']',