Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add l18n support for string translation #444

Open
marcinkrzeminski opened this issue Aug 30, 2019 · 0 comments
Open

Add l18n support for string translation #444

marcinkrzeminski opened this issue Aug 30, 2019 · 0 comments

Comments

@marcinkrzeminski
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant