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
    Fullstack Developer

    Hi,

    Is there any error log?

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on January 09, 2026, 07:22
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.