0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

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 :)
This commit is contained in:
Hannah Wolfe 2021-10-04 09:45:07 +01:00
parent e8c5a3bc26
commit 8743931c7c
No known key found for this signature in database
GPG key ID: 9F8C7532D0A6BA55

View file

@ -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
*