General question about internationalization #19802
-
I'm a beginner and I know how to work with I18N. when creating dynamic classroom pages how can I internationalize them? like for the classroom name and description how we are going to make it internationalized? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Maybe have schema/dict for each page where the key is the section name and the value is i18n_key
Later in the component select the section:
In template:
Can we do this or something around that? |
Beta Was this translation helpful? Give feedback.
-
@DubeySandeep but we still have to update the I18N files before launching any new classroom?? which is not fully dynamic atleast show in english by default |
Beta Was this translation helpful? Give feedback.
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.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