How to make your application multilingual in SAP AppGyver
source link: https://blogs.sap.com/2023/05/16/how-to-make-your-application-multilingual-in-sap-appgyver/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How to make your application multilingual in SAP AppGyver
In this blog we will try to show you how you can make your application multilingual.
Introduction
In most scenarios you have to translate your application label and text according to client/customer requirement for better user experience and globalization. Here I will try to explain you with a simple example how you can translate your application label or text using translation variable. Before you can start with this blog I would recommend you too go through this link to get started with AppGyver.
for more info on SAP Build you can try this link https://answers.sap.com/tags/6cfd8176-04ae-4548-8f38-158456e1a47a
Requirement
Solution
SAP build has provided a very simple and straight forward solution that I will walk you through by this blog.
The first thing you need to do is add the supported language under translation variables refer Figure 1. For this blog, I have selected German and English. You need to provide a fallback language too or it will take the first value by default.
Figure 1: Set translation variables for English and German.
Then you must add a Text/Title in your application.
Figure 2: Adding Text/Title.
Then go to Properties for your text and click on the Translate button. You will see a pop up where an editable key for your translation is created. Now you must provide your translation for the given text. Click on Create Translate and Save your changes.
Figure 3: Setting up translation key for Text/Title.
Now we have created our translation for Hello World.
Next step would be to see a preview of our application. For that I have created a Selection Field where we will select the language and it will change translation for Hello World from English to German.
Figure 4: Application preview.
You can see how we can make your applications multilingual.
Conclusion
You can make your application using these simple steps. If you want to translate your text from your oData call it is also possible, you just need to assign those value as key and provide a right translation.
Hope this small blog would have helped you and do not forget to share your feedback and learning from this blog in the comment section.
you can also checkout my another blog on How to use filters in SAP AppGyver
For more information you can check these links too.
SAP Build Apps | SAP Community
SAP Builders – SAP Community Groups
Ask questions about SAP S/4HANA Cloud and follow
Read other SAP S/4HANA Cloud blog posts and follow
Please follow vikas gupta for future posts
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK