Forum Discussion

iXeeshanTahir's avatar
iXeeshanTahir
Copper Contributor
Feb 15, 2022
Solved

Hub Site Translation not working when switching to another language

We have a hub site with navigation enabled and also MUI setup for Arabic language. Each item in the menu has the translations. When user switches from English To Arabic, the whole UI experience changes except the Navigation. Changing the language requires the users to clear the browser Cache which is not a good experience. Even Ctrl + F5 do not helped here.

 

Is there any way to force clear cache or force my portal to reload changed MUI Navigation?

 

Environment: SharePoint Online with SPFX React

  • So, after weeks of trying different approaches, I was finally able to achieve this with some custom piece of code.

    The problem here is that SharePoint Online stores the Hub navigation in browser cache. A database called ODSP_DB is holding the navigation nodes. Users cannot see the navigation updates unless they clear browser cache (which eventually refreshes the database) or logout and login to the system.

    To overcome this issue, you have to clean the DB with custom JS Code and unregister a service worker from the browser, which actually forces the browser to rebuild the ODSP_DB and the navigation nodes.

    I have placed the sample code on my blog. May be it will help someone until a proper way is announced by Microsoft.

    http://fixingsharepoint.blogspot.com/2022/11/sharepoint-online-hub-navigation-not.html

4 Replies

  • iXeeshanTahir's avatar
    iXeeshanTahir
    Copper Contributor
    So, after weeks of trying different approaches, I was finally able to achieve this with some custom piece of code.

    The problem here is that SharePoint Online stores the Hub navigation in browser cache. A database called ODSP_DB is holding the navigation nodes. Users cannot see the navigation updates unless they clear browser cache (which eventually refreshes the database) or logout and login to the system.

    To overcome this issue, you have to clean the DB with custom JS Code and unregister a service worker from the browser, which actually forces the browser to rebuild the ODSP_DB and the navigation nodes.

    I have placed the sample code on my blog. May be it will help someone until a proper way is announced by Microsoft.

    http://fixingsharepoint.blogspot.com/2022/11/sharepoint-online-hub-navigation-not.html
  • itsbrad's avatar
    itsbrad
    Iron Contributor

    Following.

     

    I've seen similar issues in one of my environments, seems to be related to caching on the local client.

    • Dpabster's avatar
      Dpabster
      Copper Contributor
      Hello folks! I am having the same issue and I found this recent thread -
      https://answers.microsoft.com/en-us/msoffice/forum/all/sharepoint-navigation-menu-will-not-translate-to/95092b42-bd4c-4377-91e9-a46cdcda5581
      and Microsoft responded asking to follow the steps here -
      https://support.microsoft.com/en-us/office/change-your-personal-language-and-region-settings-caa1fccc-bcdb-42f3-9e5b-45957647ffd7

      but it still didn't work for me. The navigation won't translate. Only the content/pages translate.

      If you have fixed this, please share the fix. Thank you kindly!


  • Simon Aberg's avatar
    Simon Aberg
    Copper Contributor
    Hi, I have the same problem. Having my site in English and I can translate the landing pages and news articles to any other language. However, the navigation can't be translated.

Resources