Skip to content

Add support for translations by default in cookiecutter-django-app #401

@BryanttV

Description

@BryanttV

Description

If you add translations in the conf/locale folder they are not rendered on the platform.

To make it work by default on the platform, the following changes can be made. These changes were successfully tested in this plugin

  1. Move all files from conf/locale to locale.

  2. Update MANIFEST.in file to include the new locale folder at the time of package installation.

    recursive-include {{cookiecutter.sub_dir_name}}/locale *
    

These changes will allow translations included in the locale folder to be automatically recognized by the platform. In addition, the make extract_translations and make compile_translations commands should not be modified, as they work with these changes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions