Commit 0b99d7df authored by Benoit Lavenier's avatar Benoit Lavenier

[fix] Fix missing i18N on profile position

parent ea8df827
Pipeline #4247 passed with stages
in 13 minutes and 16 seconds
......@@ -355,6 +355,7 @@
"DISTANCE_UNIT": "mi",
"DISTANCE_OPTION": "{{value}} {{'LOCATION.DISTANCE_UNIT'|translate}}",
"SEARCH_HELP": "City, Country",
"PROFILE_POSITION": "Profile position",
"MODAL": {
"TITLE": "Search address",
"SEARCH_HELP": "City, Country",
......
......@@ -355,6 +355,7 @@
"DISTANCE_UNIT": "mi",
"DISTANCE_OPTION": "{{value}} {{'LOCATION.DISTANCE_UNIT'|translate}}",
"SEARCH_HELP": "City, Country",
"PROFILE_POSITION": "Profile position",
"MODAL": {
"TITLE": "Search address",
"SEARCH_HELP": "City, Country",
......
......@@ -402,6 +402,7 @@
"DISTANCE_UNIT": "km",
"DISTANCE_OPTION": "{{value}} {{'LOCATION.DISTANCE_UNIT'|translate}}",
"SEARCH_HELP": "Ciudad, País",
"PROFILE_POSITION": "Posición del perfil",
"MODAL": {
"TITLE": "Búsqueda de dirección",
"SEARCH_HELP": "Ciudad, País",
......
......@@ -406,6 +406,7 @@
"DISTANCE_UNIT": "km",
"DISTANCE_OPTION": "{{value}} {{'LOCATION.DISTANCE_UNIT'|translate}}",
"SEARCH_HELP": "Code postal, Ville",
"PROFILE_POSITION": "Position du profil",
"MODAL": {
"TITLE": "Recherche de l'adresse",
"SEARCH_HELP": "Ville, Code postal, Pays",
......
......@@ -225,7 +225,7 @@ function ESRegistryLookupController($scope, $focus, $timeout, $filter, $controll
});
}
$scope.search.geoPoint = csWallet.data.profile.geoPoint;
$scope.search.location = csWallet.data.profile.city||(csWallet.data.profile.geoPoint ? 'profile position' : undefined);
$scope.search.location = csWallet.data.profile.city||(csWallet.data.profile.geoPoint ? $translate.instant('LOCATION.PROFILE_POSITION') : undefined);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment