Unable to use language_code with 'fr-fr'

I’m new to Python development and I’m currently testing Django.

It is impossible for me to put my test application in French by setting language_code to ‘fr-fr’.

When I do this I get the following error message: "ERRORS:
?: (translation.E004) You have provided a value for the LANGUAGE_CODE setting that is not in the LANGUAGES setting. "

I snooped on google without convincing answer.
How to make my application work in French. Can someone help me?

Use fr, it wiil do the job fine!

1 Like

It’s referring to the LANGUAGES setting which is documented here: https://docs.djangoproject.com/en/3.0/ref/settings/#languages . This links to the source which lists all valid languages.

1 Like