ushahidi / platform

Ushahidi Platform API version 3+
http://ushahidi.com
Other
676 stars 506 forks source link

[Accessibility] Localization of "{{ model.value }} posts" string in bar-chart.component.html #4983

Open kivuvarosekivuvan opened 2 months ago

kivuvarosekivuvan commented 2 months ago

Summary

Describe the bug

The string "{{ model.value }} posts" on line 14 in the bar-chart.component.html file needs to be localized to support multiple languages.

To Reproduce

  1. Navigate to the apps/web-mzima-client/src/app/activity/bar-chart/bar-chart.component.html file.
  2. Locate the following code block on line 14:
    <span class="chart__tooltip">{{ model.value }} posts</span>

Expected behavior

The "{{ model.value }} posts" string should be localized and retrieved from a translation file or service, so that it can be displayed in the user's preferred language.

How to solve

  1. In the bar-chart.component.html file, replace the hardcoded "{{ model.value }} posts" string with a translation key (something like., {{ 'ACTIVITY.BAR_CHART_TOOLTIP' | translate:{ value: model.value } }}).

Screenshots

Screenshot 2024-07-26 at 15 02 16
linear[bot] commented 2 months ago

PLAT-5085 Localization of "{{ model.value }} posts" string in bar-chart.component.html