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
-
Move all files from conf/locale to locale.
-
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.
Description
If you add translations in the
conf/localefolder 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
Move all files from
conf/localetolocale.Update
MANIFEST.infile to include the newlocalefolder at the time of package installation.These changes will allow translations included in the
localefolder to be automatically recognized by the platform. In addition, themake extract_translationsandmake compile_translationscommands should not be modified, as they work with these changes.