I18N

I18N finds translations of contents that share the same CONTENT_KEY, and links them together in a meta date: content['translations'].

Installation

# settings.py

PLUGINS = [
    'flamingo.plugins.I18N',
]

Settings

I18N_CONTENT_KEY = 'id'

Controls which meta data key I18N should use to associate contents

I18N_LANGUAGES = ['en', 'de']

List of all available languages as language codes

I18N_DEFAULT_LANGUAGE = 'en'

Lang code of the default language

I18N_ENFORCE_REDIRECT = True

If set to True, / will redirect to //

I18N_IGNORE = {'i18n_ignore__isnull': False}

This setting contains a query which contents should be ignored and not be translated. How to make queries

Usage

id: my-blog-post
lang: de


Hallo Welt
==========

German lorem ipsum
id: my-blog-post
lang: en


Hello World
===========

English lorem ipsum