d40bb10876
Implemented localization foundations across backend and frontend (locale settings/middleware, preferred language, i18n wiring, RTL support, minimal Arabic UI strings, Accept-Language). Added targeted backend and frontend tests plus a risks note for pending full translation coverage.
20 lines
489 B
Python
20 lines
489 B
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("accounts", "0002_phone_auth_fields"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="user",
|
|
name="preferred_language",
|
|
field=models.CharField(
|
|
choices=[("ar-sa", "Arabic (Saudi Arabia)"), ("en", "English")],
|
|
default="ar-sa",
|
|
max_length=10,
|
|
),
|
|
),
|
|
]
|