We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Becoming a Multilingual SuperHero in Django

Formal Metadata

Title
Becoming a Multilingual SuperHero in Django
Title of Series
Number of Parts
50
Author
Contributors
License
CC Attribution - ShareAlike 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal and non-commercial purpose as long as the work is attributed to the author in the manner specified by the author or licensor and the work or content is shared also in adapted form only under the conditions of this
Identifiers
Publisher
Release Date
Language

Content Metadata

Subject Area
Genre
Abstract
You have got this super awesome REST API served through Django/DRF based project and suddenly these requirements come in: We need to have a local support for the Chinese language! In case, you’ve not written your application with localization and internationalization in mind, then “Boy! You’re in danger! You should better start praying to almighty to give you strength and endurance to support yet another language in your app”. In this talk, we’ll see how do we support localization and serve our app in different languages, based on what language the client wants to communicate in. As a backend, we should be language agnostic and allow all clients to communicate with us in one of the languages we support. We’ll see how to support translation for static data (using makemessages / compilemessages) and dynamic data, using various third-party services such as django-translations and transifex. Here, static data is translations for all the fields, error messages etc. that the app already has and dynamic data is the custom data input by the user in the app. This would enable you to have your admin panel, as well as RESTful APIs, served in different languages.