generator-chisel icon indicating copy to clipboard operation
generator-chisel copied to clipboard

Add l18n support for string translation

Open marcinkrzeminski opened this issue 6 years ago • 0 comments

How about introducing a new option in the generator that's responsible for creating a text-domain? By default, it could be generated based on a project name. This way we could use that text domain in the related issues #443 and #437.

To make sure it works we should use this code snippet

load_theme_textdomain( 'TEXT_DOMAIN_HERE', get_template_directory() . '/languages' );

Most likely in the Theme.php file.

marcinkrzeminski avatar Aug 30 '19 14:08 marcinkrzeminski