diff --git a/Server/locales/en.json b/Server/locales/en.json index ba50e1d40..8657deb73 100644 --- a/Server/locales/en.json +++ b/Server/locales/en.json @@ -144,5 +144,11 @@ "monitorResume": "Monitor resumed successfully", "statusPageDelete": "Status page deleted successfully", "statusPageUpdate": "Status page updated successfully", - "statusPageByTeamId": "Got status pages by team id successfully" + "statusPageByTeamId": "Got status pages by team id successfully", + "httpNetworkError": "Network error", + "httpNotJson": "Response data is not json", + "httpJsonPathError": "Failed to parse json data", + "httpEmptyResult": "Result is empty", + "httpMatchSuccess": "Response data match successfully", + "httpMatchFail": "Failed to match response data" } \ No newline at end of file diff --git a/Server/service/stringService.js b/Server/service/stringService.js index a65e1655b..1ef208d6c 100644 --- a/Server/service/stringService.js +++ b/Server/service/stringService.js @@ -321,6 +321,30 @@ class StringService { return this.translationService.getTranslation('getAppSettings'); } + get httpNetworkError() { + return this.translationService.getTranslation('httpNetworkError'); + } + + get httpNotJson() { + return this.translationService.getTranslation('httpNotJson'); + } + + get httpJsonPathError() { + return this.translationService.getTranslation('httpJsonPathError'); + } + + get httpEmptyResult() { + return this.translationService.getTranslation('httpEmptyResult'); + } + + get httpMatchSuccess() { + return this.translationService.getTranslation('httpMatchSuccess'); + } + + get httpMatchFail() { + return this.translationService.getTranslation('httpMatchFail'); + } + get updateAppSettings() { return this.translationService.getTranslation('updateAppSettings'); }