Activities of "user6.abpio"

Hi Support Team,

My Ui project version information :

Angular CLI: 15.2.9 Node: 18.17.0 Package Manager: npm 9.6.7 OS: win32 x64

My version details are as follows, but the user default language setting is not working for me. As evident from my question, it's not functioning properly. I controled in db and saved like

Id|Name |Value|ProviderName|ProviderKey | |------------------------------------|--------------------------------|-----|------------|------------------------------------| Id |Abp.Localization.DefaultLanguage|tr |U |userId|

Could you please specify in detail where these settings are actually located (by default) and how I can manually add them in Ui project?

If you need any more information to help you I can share it with you please feel free to ask questions.

Hi Team,

On the backend, I have implemented a solution to save user-specific language preferences during login using the following method:

await _settingManager.SetForUserAsync(user.Id, LocalizationSettingNames.DefaultLanguage, currentCulture);  

I also created a service to retrieve this information:

public async Task<string> GetUserLoginCulture() { var defaultLanguage = await _settingProvider.GetOrNullAsync(LocalizationSettingNames.DefaultLanguage); return defaultLanguage; }

The issue arises on the frontend side. Since the user’s selected language is stored during the login process, I need to ensure the selected language is loaded appropriately in Angular.

Here’s the challenge:

In main.ts, the token is not yet available, so my method to retrieve the user-specific language cannot work. In login.ts, the token is available after login, (Api sent url from Login http://localhost:0000/?code=xyz&iss=httpxyz , we take token with this "code" field) but by then, the default language is already loaded, causing the selected language to be reloaded as if it's being set twice. Could you guide me on the best practice for handling this scenario in Angular? Specifically:

Is there a recommended place in Angular to call my service to fetch the user’s language preference after login? Alternatively, is there an Angular setting or mechanism to load the user’s selected language automatically without requiring an additional service call after login? Looking forward to your guidance.

Thank you!

Showing 1 to 2 of 2 entries
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.0.0-preview. Updated on September 12, 2025, 10:20