I did some research on fetching user local from browser and server side:
Based on navigator.language or navigator.languages in modern browse
navigator.language
navigator.languages