diff --git a/src/app/interface/translations.ts b/src/app/interface/translations.ts
index beadbe5..f944289 100644
--- a/src/app/interface/translations.ts
+++ b/src/app/interface/translations.ts
@@ -10,5 +10,6 @@ export interface listTranslations {
translate: string;
locationName: string;
distance: string;
+ positionNotFoundErrorMessage: string;
}
diff --git a/src/app/list/list.component.html b/src/app/list/list.component.html
index 089f016..26dcb4a 100644
--- a/src/app/list/list.component.html
+++ b/src/app/list/list.component.html
@@ -32,7 +32,7 @@
{{translations.distance}}{{distance[i]}} km
- could not retrieve distance
+ {{translations.positionNotFoundErrorMessage}}
diff --git a/src/app/list/list.component.ts b/src/app/list/list.component.ts
index f7ab6dd..61cc031 100644
--- a/src/app/list/list.component.ts
+++ b/src/app/list/list.component.ts
@@ -121,6 +121,6 @@ export class ListComponent implements OnInit, OnChanges {
this.translations.translate = await this.translateService.getData(this.translations.translate, lang);
this.translations.distance = await this.translateService.getData(this.translations.distance, lang);
this.translations.locationName = await this.translateService.getData(this.translations.locationName, lang);
-
+ this.translations.positionNotFoundErrorMessage = await this.translateService.getData(this.translations.positionNotFoundErrorMessage, lang);
}
}
diff --git a/src/app/service/readTranslateJsonService.ts b/src/app/service/readTranslateJsonService.ts
index 04b8609..53d0381 100644
--- a/src/app/service/readTranslateJsonService.ts
+++ b/src/app/service/readTranslateJsonService.ts
@@ -24,6 +24,7 @@ export class ReadTranslateJsonService {
this.listTranslation.translate = data.translate;
this.listTranslation.distance = data.distance;
this.listTranslation.locationName = data.locationName;
+ this.listTranslation.positionNotFoundErrorMessage = data.positionNotFoundErrorMessage;
console.log("data loaded", this.homeTranslations)
});
}
diff --git a/src/assets/i18n/list/en.json b/src/assets/i18n/list/en.json
index 34d90fc..ee43f5b 100644
--- a/src/assets/i18n/list/en.json
+++ b/src/assets/i18n/list/en.json
@@ -1,5 +1,6 @@
{
"translate": "Translate",
"locationName": "Position not found: ",
- "distance": "Distance: "
+ "distance": "Distance: ",
+ "positionNotFoundErrorMessage": "Could not retrieve position"
}