All Projects → raphaelm → django-i18nfield

raphaelm / django-i18nfield

Licence: Apache-2.0 license
Store internationalized strings in Django models with full forms support

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to django-i18nfield

Eslint Plugin I18n Json
Fully extendable eslint plugin for JSON i18n translation files.
Stars: ✭ 101 (+215.63%)
Mutual labels:  i18n, translation, internationalization
Jquery I18next
i18next plugin for jquery usage
Stars: ✭ 143 (+346.88%)
Mutual labels:  i18n, translation, internationalization
Pseudo Localization
Dynamic pseudo-localization in the browser and nodejs
Stars: ✭ 109 (+240.63%)
Mutual labels:  i18n, translation, internationalization
Translatedjs
Internationalization and localization for JavaScript and Node.js
Stars: ✭ 17 (-46.87%)
Mutual labels:  i18n, translation, internationalization
I18next Express Middleware
[deprecated] can be replaced with i18next-http-middleware
Stars: ✭ 195 (+509.38%)
Mutual labels:  i18n, translation, internationalization
React Intl Hooks
React hooks for internationalization without the hassle ⚛️🌍
Stars: ✭ 64 (+100%)
Mutual labels:  i18n, translation, internationalization
Dom I18n
Provides a very basic HTML multilingual support using JavaScript
Stars: ✭ 125 (+290.63%)
Mutual labels:  i18n, translation, internationalization
I18next
i18next: learn once - translate everywhere
Stars: ✭ 5,971 (+18559.38%)
Mutual labels:  i18n, translation, internationalization
React Translated
A dead simple way to add complex translations (i18n) in a React (DOM/Native) project 🌎🌍🌏
Stars: ✭ 176 (+450%)
Mutual labels:  i18n, translation, internationalization
Node Gettext
A JavaScript implementation of gettext, a localization framework.
Stars: ✭ 175 (+446.88%)
Mutual labels:  i18n, translation, internationalization
Django Rosetta
Rosetta is a Django application that eases the translation process of your Django projects
Stars: ✭ 806 (+2418.75%)
Mutual labels:  i18n, translation, internationalization
fluent-vue
Internationalization plugin for Vue.js
Stars: ✭ 137 (+328.13%)
Mutual labels:  i18n, translation, internationalization
Frenchkiss.js
The blazing fast lightweight internationalization (i18n) module for javascript
Stars: ✭ 776 (+2325%)
Mutual labels:  i18n, translation, internationalization
Transloco
🚀 😍 The internationalization (i18n) library for Angular
Stars: ✭ 1,185 (+3603.13%)
Mutual labels:  i18n, translation, internationalization
React I18next
Internationalization for react done right. Using the i18next i18n ecosystem.
Stars: ✭ 6,942 (+21593.75%)
Mutual labels:  i18n, translation, internationalization
Phabricator zh hans
Phabricator zh-Hans Translation & Tools.
Stars: ✭ 113 (+253.13%)
Mutual labels:  i18n, translation, internationalization
Gettext
PHP library to collect and manipulate gettext (.po, .mo, .php, .json, etc)
Stars: ✭ 578 (+1706.25%)
Mutual labels:  i18n, translation, internationalization
Fluent.js
JavaScript implementation of Project Fluent
Stars: ✭ 622 (+1843.75%)
Mutual labels:  i18n, translation, internationalization
Formatjs
The monorepo home to all of the FormatJS related libraries, most notably react-intl.
Stars: ✭ 12,869 (+40115.63%)
Mutual labels:  i18n, translation, internationalization
Weblate
Web based localization tool with tight version control integration.
Stars: ✭ 2,719 (+8396.88%)
Mutual labels:  i18n, translation, internationalization

I18nFields for Django

https://readthedocs.org/projects/django-i18nfield/badge/?version=latest https://travis-ci.org/raphaelm/django-i18nfield.svg?branch=master

This is yet another way to store multi-lingual content in Django. In contrast to other options like django-hvad, django-modeltranslation or django-parler it does not require additonal database tables and you can reconfigure the available languages without any changes to the database schema. In constrast to nece, it is not specific to PostgreSQL.

How does it work then? It stores JSON data into a TextField. Yes, this is kinda dirty and violates the 1NF. This makes it harder for non-django based programs to interact directly with your database and is not perfectly efficient in terms of storage space. It also lacks the ability to do useful lookups, searches and indices on internationalized fields. If one of those things are important to you, this project is not for you, please choose one of the ones that we linked above.

However if those limitations are fine for you, this provides you with a very lightweight, easy to use and flexible solution. This approach has been in use in pretix for quite a while, so it has been tested in production. The package contains not only the model fields, but also form fields and everything you need to get them running.

Features

  • Very easy installation
  • Internationalized versions of CharField and TextField types
  • Integrated form fields types and widgets
  • Automatic migration from non-localized fields with a simple migration
  • Full support for forms and formsets
  • Possibility to dynamically limit the displayed languages
  • Very basic integration with django admin
  • Integration with Django Restframework
  • Comprehensive test suite and production-tested

Tested with:

  • Python 3.6 to 3.10
  • Django 3.2 to 4.0

License

The code in this repository is published under the terms of the Apache License. See the LICENSE file for the complete license text.

This project is maintained by Raphael Michel <[email protected]>. See the AUTHORS file for a list of all the awesome folks who contributed to this project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].