From 8743931c7c7db4079ed145673c36f214fa83bc1a Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Mon, 4 Oct 2021 09:45:07 +0100 Subject: [PATCH] Removed unused doesTranslationKeyExist fn from i18n - With the recent removal of i18n from error handling, we've removed the usecase for this function - Cleaning up as we slowly get rid of i18n :) --- core/shared/i18n/i18n.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/core/shared/i18n/i18n.js b/core/shared/i18n/i18n.js index 96cf277463..e3bd144e9b 100644 --- a/core/shared/i18n/i18n.js +++ b/core/shared/i18n/i18n.js @@ -128,15 +128,6 @@ class I18n { } } - /** - * Check if a key exists in the loaded strings - * @param {String} msgPath - */ - doesTranslationKeyExist(msgPath) { - const translation = this._findString(msgPath, {log: false}); - return translation !== this._fallbackError(); - } - /** * Do the lookup within the JSON file using jsonpath *