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:
parent
e8c5a3bc26
commit
8743931c7c
1 changed files with 0 additions and 9 deletions
|
@ -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
|
* Do the lookup within the JSON file using jsonpath
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue