Introduction
In this article, we will see how to use Multilingual Language in Canvas PowerApps.
Implementation Steps
1. Open an Excel Create Data Like the one Below and Save the Excel.
LanguageTag |
Text |
TextID |
en |
Approved Leave |
Approved Leave |
en |
Pending Leave |
Pending Leave |
en |
Rejected Leave |
Rejected Leave |
ar |
إجازة معتمدة |
Approved Leave |
ar |
إجازة معلقة |
Pending Leave |
ar |
الإجازة المرفوضة |
Rejected Leave |
2. Now Navigate to https://make.powerapps.com.
3. Click New Apps Page Design, Click DataSource on the Left Side, and Search for import from Excel.
4. Now Select the Excel from your Saved Location.
5. Once you select Excel, you will see the Data Gets added Successfully in the PowerApps.
6. Now, in On Start of App write Below Code to get the Language of the User (based on the Browser).
Set(
getCurrentLanguageofLoggedinUserBrowser,
Coalesce(
Lower(
Left(
Language(),
2
)
),
"en"
)
)
7. Now Add 3 labels (Click Insert and Click Labels).
Write Below Code
LookUp(Table2,LanguageTag=getCurrentLanguageofLoggedinUserBrowser && TextID = "Approved Leave").Text
LookUp(Table2,LanguageTag=getCurrentLanguageofLoggedinUserBrowser && TextID = "Pending Leave").Text
LookUp(Table2,LanguageTag=getCurrentLanguageofLoggedinUserBrowser && TextID = "Rejected Leave").Text
8. That' it. Now, I will run the PowerApps.
9. For English
10. For Arabic
Note. For Changing Language, Click on Elipse Symbol in the Browser Search for Language and Add a Language, and Make it to TOP to set the Language.
Conclusion
The above-mentioned scenario is one of the ways to Use Multilingual language, we can have other ways too like getting data from DV, etc.