Website default language is english

How to change the default language from english to arabic before user login?

i wrote the following but nothing change!
frappe.local.lang = “ar”

Set in System Settings

1 Like

What do you mean by System settings?

From Desk:
Setup/System Settings/Language

Then reload ERPNext

Hi @mostafa,

Refer Link:-
https://frappe.github.io/erpnext/user/manual/en/setting-up/settings/system-settings.html

I have the same problem, and it doesn’t work to change the language through System Settings, but, for example, your browser is in another language, because the priorities are the following:

  1.  Form Dict > _lang
    
  2. Cookie > preferred_language [Guest User only]
    
  3. Request Header > Accept-Language [Guest User only]
    
  4. User document > language
    
  5. System Settings > language
    
1 Like

same happened here where is the code to force default lang not based on browser or operating system

regards