KristianOellegaard/django-hvad — Issue #27: Respect settings.LANGUAGE_CODE as default language
Author: kmpm
Created: 2012-03-03 19:19:43+00:00
State: open

The default language_code are always 'en-us', it would be much better if it did respect the settings.
I might have missed something in the documentation and would love to be proven wrong but until then, here is an example

__models.py__

```python
class MyModel(TranslatableModel):
shared_field = models.CharField(max_length=50)
translations = TranslatedFields(
name = models.CharField(max_length=50)
)

instance = MyModel.objects.create(shared_field='foo', name='bar')
```

__settings.py__

```python
LANGUAGE_CODE='sv-se'

LANGUAGES = (
('en-us', 'English'),
('sv-se', 'Swedish'),
)
```

__dump.json__

```json

{
"pk": 1,
"model": "app.mymodel",
"fields": {
"shared_field": "foo"
}
},
{
"pk": 1,
"model": "app.mymodeltranslation",
"fields": {
"name": "bar",
"language_code": "en-us",
"master": 1
}
},

```