Skip to content

General question about internationalization #19802

Discussion options

You must be logged in to vote

Currently, for classroom names, we use a technique called hacky translation i.e., if the translation is present in assets/i18n then show the translation else present the default English text.

<span *ngIf="!isHackyClassroomTranslationDisplayed()">
  {{ classroomDisplayName }}
</span>
<span *ngIf="isHackyClassroomTranslationDisplayed()">
  {{ classroomNameTranslationKey | translate }}
</span>

We wanted to follow this same technique for other fields e.g., Topics covered, Course details.
Let me know if this does not answer your question or if you need more explanation, I will be happy to guide.
Thanks

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Nik-09
Comment options

@kjuice276
Comment options

@Nik-09
Comment options

Answer selected by kjuice276
@kjuice276
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants