{"id":13734485,"url":"https://github.com/zostera/django-modeltrans","last_synced_at":"2025-04-04T14:04:21.315Z","repository":{"id":20684607,"uuid":"90603670","full_name":"zostera/django-modeltrans","owner":"zostera","description":"Translate Django model fields in a PostgreSQL JSONField","archived":false,"fork":false,"pushed_at":"2024-10-28T02:16:03.000Z","size":553,"stargazers_count":66,"open_issues_count":19,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T20:45:35.713Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://django-modeltrans.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zostera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-08T08:21:30.000Z","updated_at":"2025-01-09T18:38:52.000Z","dependencies_parsed_at":"2023-12-05T09:26:25.190Z","dependency_job_id":"4c5f4d7c-8f06-4d5f-8056-d6470958b69a","html_url":"https://github.com/zostera/django-modeltrans","commit_stats":{"total_commits":372,"total_committers":12,"mean_commits":31.0,"dds":"0.10483870967741937","last_synced_commit":"d6e22afd363a4c97c6ce3ba51971ad39640a95be"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostera%2Fdjango-modeltrans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostera%2Fdjango-modeltrans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostera%2Fdjango-modeltrans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostera%2Fdjango-modeltrans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zostera","download_url":"https://codeload.github.com/zostera/django-modeltrans/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247187810,"owners_count":20898378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T03:00:56.345Z","updated_at":"2025-04-04T14:04:21.293Z","avatar_url":"https://github.com/zostera.png","language":"Python","funding_links":[],"categories":["Third-Party Packages"],"sub_categories":["Internationalisation (i18n)"],"readme":"# django-modeltrans\n\n[![CI](https://github.com/zostera/django-modeltrans/actions/workflows/ci.yml/badge.svg)](https://github.com/zostera/django-modeltrans/actions/workflows/ci.yml)\n[![Documentation Status](https://readthedocs.org/projects/django-modeltrans/badge/?version=latest)](http://django-modeltrans.readthedocs.io/en/latest/?badge=latest)\n[![Any color you like](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\nTranslates Django model fields in a `JSONField` using a registration approach.\n\n# Features/requirements\n\n- Uses one PostgreSQL `jsonb`-field per model (via `django.db.models.JSONField`)\n- Django 4.2, 5.0 (with their supported python versions)\n- PostgreSQL \u003e= 13 and the appropriate `psycopg` version for your Django version\n- [Available on pypi](https://pypi.python.org/pypi/django-modeltrans)\n- [Documentation](http://django-modeltrans.readthedocs.io/en/latest/)\n\n# Running the tests\n\n`tox`\n\nRunning the tests only for the current environment, use `make test`\n\n# Attribution\n\nSome concepts and code come from https://github.com/deschler/django-modeltranslation,\nwhich is in turn inspired by https://github.com/zmathew/django-linguo\n\nWe started this solution at Zostera because we did not like:\n - The way django-modeltranslation adds one field per language (and thus requires a migration\nwhen adding a language);\n - The unpredictability of the original field.\n\nSince `JSONB` is supported by Postgres now, we developed this approach.\n\n# Relevant 3rd party documentation\n\n- [PostgreSQL jsonb functions](https://www.postgresql.org/docs/9.5/static/functions-json.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzostera%2Fdjango-modeltrans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzostera%2Fdjango-modeltrans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzostera%2Fdjango-modeltrans/lists"}