Open Closed

How to change user language in MAUI / LeptonXTheme #7016


User avatar
0
skander created

Hi, I'm in the current process of changing the current user language in mobile MAUI app using my own template. Though when I run my HttpAPI Host locally it works, but not when Host runs on an external server ? I'm not sure why. 🤔

  • ABP Framework version: v8.0.3
  • UI Type: Blazor MAUI + LeptonXTheme
  • Database System: EF Core (SQL Server)
  • Steps to reproduce the issue:

Context: we have a desktop app (Blazor WebAssembly + basic theme) and a mobile app (Blazor MAUI + LeptonXTheme) that use the same UI to change language.

When I change language on desktop, it works using localStorage technique but on mobile app, it's a different code that execute to change language since localStorage isn't available.

I used LeptonXTheme ILanguagePlatformManager to change language using ChangeAsync method This works perfectly when my server (HttpAPI Host) runs locally, but when I changed the address to point to an external server hosted on azurewebsites, it stopped working like if it cannot hit Abp/Languages/Switch endpoint there?

I'm not quite sure why it behaves this way, do you have any idea that can guide me ?


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Is there any error log?

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11