Forum Discussion
Multilingual Hub Menu is not translating
I am trying for my profile, in the below image I selected polish in my case but Home and Document are translated manually to polish but still I see them as english.
- Regional/language settings of SharePoint site - It is Polish since site is Polish
- Language settings of user account in delve / advanced settings in my sites in SharePoint
Hi Striker
I may be the one who first wrote "2 hours" for hub navigation, and others have copied that, but that is just one possible scenario.
Language settings are a bit more complex than this. What you have shown is the Account settings. What you want to see is the Profile settings, not necessarily the same. In many cases changes in Account settings for display language get synchronized to Profile settings, which themselves get synchronized with site-level user display settings. You have to wait for the synchronization to reach both the hub site and the lower level site, presuming that the language is the same as one of the alternate languages of both sites. After that, there are two levels of caching, browser-level caching and server-level caching per user for hub navigation. There are APIs to refresh them, but using only the browser, the best method is to shut down both the logged in session and the browser after the languages have propagated. How can you tell whether the languages have propagated? You have to look at your menus and UI in the site and go directly to the hub site and check the menus and UI there.
We've done all the work to synchronize the language of the hub and global navigation, but it's part of a commercial product.
- Sabine_DBJan 26, 2023Brass Contributor
Hi MartinLaplante,
Could you specify in which cases changes in Account settings for display language get synchronized to Profile language settings?
Could you also specify the API used to force browser-level caching and server-level caching per user for hub navigation?
- MartinLaplanteJan 26, 2023Iron Contributor
Hi Sabine_DB
I have never figured out why most times the changes in Account settings for display language are synchronized to Profile language settings, and sometimes not. If you tinker too much with both, at some point it stops synchronizing until the next day. The account setting for preferred display language is single-valued, while the profile setting is a ranked list. Changes sync from the account to the profile but not the other way around. From the profile, it syncs to every site, slowly but reliably. Changes made at the site level do not sync upwards to the profile.For Hub navigation there are several levels of caching. The one that is covered by the API is here
https://learn.microsoft.com/en-us/sharepoint/dev/features/hub-site/rest-hubsitedata-method
Note the forceRefresh parameter. Yes, it's a server parameter change in a read request. But that is only part of the story. This API is for the server cache, not the browser cache. The browser cache is not covered by API, and its mechanism changes now and then. Our product development team spends its time tracking those changes and making the cache update.