Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Accessibility] Localization of "This is the single point tooltip template" string in activity-timeline.component.html #4982

Open
kivuvarosekivuvan opened this issue Jul 26, 2024 · 1 comment

Comments

@kivuvarosekivuvan
Copy link

Summary

Describe the bug

The string "This is the single point tooltip template" on line 23 in the activity-timeline.component.html file needs to be localized to support multiple languages.

To Reproduce

  1. Navigate to the apps/web-mzima-client/src/app/activity/activity-timeline/activity-timeline.component.html file.
  2. Locate the following code block on line 23:
<ng-template #tooltipTemplate let-model="model">
  This is the single point tooltip template
  <pre>{{ model | json }}</pre>
</ng-template>

Expected behavior

The "This is the single point tooltip template" 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 activity-timeline.component.html file, replace the hardcoded "This is the single point tooltip template" string with a translation key (something like., {{ 'ACTIVITY.TOOLTIP_TEMPLATE' | translate }}).

Screenshots

Screenshot 2024-07-26 at 14 57 11
@kivuvarosekivuvan kivuvarosekivuvan self-assigned this Jul 26, 2024
@kivuvarosekivuvan kivuvarosekivuvan changed the title Localization of "This is the single point tooltip template" string in activity-timeline.component.html [Accessibility] Localization of "This is the single point tooltip template" string in activity-timeline.component.html Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant