Power Apps Portal – Multi Language – ‘Invalid website language’ error
Other day, while configuring multi language on Power Apps portal, I was getting following error while adding ‘Hindi’ as new ‘Website Language’.
Reason:
- ‘Hindi’ language was disabled by default in CDS.
Fix:
- From your portal’s ‘Model Driven’ App, go to ‘Advance Settings’, which opens up classic ‘Settings’ sitemap area.
- Under ‘Settings -> Administration -> Languages‘ select the Language which you want to enable and click ‘Apply’.
- Now go to the portal’s ‘Model Driven’ App and you should be able to create new ‘Website Language’ with enabled ‘Language’ (i.e., Hindi).
How Multiple Language works in ‘Power Apps Portal’:
- To enable a new localization (i.e., Language), add a new ‘Localized Content’ record, to every Portal ‘Web Page’.
- ‘Localized Content’ record will have a ‘Portal Language’ lookup of ‘Website Language’ record.
- To add ‘Hindi’ localization to the ‘Web Page’ add a new ‘Localization Content’ record with ‘Portal Language’ lookup set to ‘Hindi’ website language (Refer ‘Fix’ section for how part).
- Make sure ‘Published State’ of ‘Localized Content’ is ‘Published’.
Key Notes:
- By default a ‘Localization Content’ record pointing to base language (i.e., English in my case) gets created when you create a new ‘Web Page’.
- Web Link Sets:
- When a new language is activated , a new set of links are created for the newly activated language.
- Content Snippets:
- When a new language is activated , a new set of Snippets are created for the newly activated language.
- Refer link on usage of ‘Content Snippets’
- If you activate a new language after enabling Portal, the metadata will not be installed automatically for the newly activated language.
- To get the metadata translation for the newly activated language, you must import the metadata translation from the Power Apps Portals admin center.
🙂
Categories: Portals, PowerApps
Language, Portals, Power Apps
Comments (0)
Trackbacks (0)
Leave a comment
Trackback