Is the correct LANGUAGE_CODE for British English 'en-GB' or 'en-gb' when using I18N?
Does it make a difference?
CodePudding user response:
Per the definition of language code given in the Django Docs:
language code
Represents the name of a language. Browsers send the names of the languages they accept in theAccept-LanguageHTTP header using this format. Examples:it,de-at,es,pt-br. Language codes are generally represented in lowercase, but the HTTPAccept-Languageheader is case-insensitive. The separator is a dash.
Emphasis mine. Either capitalization is accepted, but the lowercase form is more typical.
CodePudding user response:
it is more likely to be en-gb for the uk
