Use the localization service for user facing strings.
This commit is contained in:
1 parent
e4e3f9cc63
commit
f22b67ad0a
4 files changed
+94
-57
No files matched your search
@@ -165,6 +165,36 @@ class StringService {
|
||||
return this.translationService.getTranslation('maintenanceWindowEdit');
|
||||
}
|
||||
|
||||
// Webhook Messages
|
||||
get webhookUnsupportedPlatform() {
|
||||
return this.translationService.getTranslation('webhookUnsupportedPlatform');
|
||||
}
|
||||
|
||||
get webhookSendError() {
|
||||
return this.translationService.getTranslation('webhookSendError');
|
||||
}
|
||||
|
||||
get webhookSendSuccess() {
|
||||
return this.translationService.getTranslation('webhookSendSuccess');
|
||||
}
|
||||
|
||||
getWebhookUnsupportedPlatform(platform) {
|
||||
return this.translationService.getTranslation('webhookUnsupportedPlatform')
|
||||
.replace('{platform}', platform);
|
||||
}
|
||||
|
||||
getWebhookSendError(platform) {
|
||||
return this.translationService.getTranslation('webhookSendError')
|
||||
.replace('{platform}', platform);
|
||||
}
|
||||
|
||||
getMonitorStatus(name, status, url) {
|
||||
return this.translationService.getTranslation('monitorStatus')
|
||||
.replace('{name}', name)
|
||||
.replace('{status}', status ? "up" : "down")
|
||||
.replace('{url}', url);
|
||||
}
|
||||
|
||||
// Error Messages
|
||||
get unknownError() {
|
||||
return this.translationService.getTranslation('unknownError');
|
||||
|
||||
Reference in new issue
Block a user