Issue
Is the correct LANGUAGE_CODE
for British English 'en-GB'
or 'en-gb'
when using I18N?
Does it make a difference?
Solution
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-Language
HTTP header using this format. Examples:it
,de-at
,es
,pt-br
. Language codes are generally represented in lowercase, but the HTTPAccept-Language
header is case-insensitive. The separator is a dash.
Emphasis mine. Either capitalization is accepted, but the lowercase form is more typical.
Answered By - Brian
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.