From 835e9e5d86e7a976b80b7476425a8d058ebb47fd Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 21 Oct 2015 10:31:28 +1030 Subject: [PATCH] Remove `app.trans` shortcut Use `app.translator.trans` instead. --- framework/core/js/lib/App.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/framework/core/js/lib/App.js b/framework/core/js/lib/App.js index 901490018..618271348 100644 --- a/framework/core/js/lib/App.js +++ b/framework/core/js/lib/App.js @@ -327,16 +327,4 @@ export default class App { return prefix + url + (queryString ? '?' + queryString : ''); } - - /** - * Shortcut to translate the given key. - * - * @param {String} key - * @param {Object} input - * @return {String} - * @public - */ - trans(key, input) { - return this.translator.trans(key, input); - } }