How to prioritize internationalization options

given that they all have different meanings:

  • HTTP browser accepts the language header parameter

  • HTTP GET parameter of human language, for example. hl = en or hl = fr

  • Language value cookie

How can we decide in which language to display pages if they are decided based on these values? It is also the thoughtful preservation of the user's preferred language for the data layer for the fourth method, allowing agents and users to select a language. Thanks in advance for your answers and comments.

+3
source share
1 answer

If you have a saved preference somewhere, this will be the first choice.

cookie - , -, , , , , .

hl - , Google , , , , , .

HTTP- , . , , , .

, :

  • .
  • Cookie.
  • hl.
  • HTTP .
  • .

, -, . , , : hl (, ), cookie ( ).

+5

All Articles