Skip to content

chore: crowdin integration#7

Open
richard015ar wants to merge 1 commit into
devfrom
feat/crowdin
Open

chore: crowdin integration#7
richard015ar wants to merge 1 commit into
devfrom
feat/crowdin

Conversation

@richard015ar
Copy link
Copy Markdown
Contributor

Issue: https://github.com/pressbooks/private/issues/2454

This pull request introduces automated Crowdin translation syncing to the project and adds initial localization support for the Pressbooks Shortcode Handler plugin. The main changes include a new GitHub Actions workflow for Crowdin integration, configuration for Crowdin project mapping, the addition of a .pot template file, and loading of the plugin text domain for translations.

Crowdin Integration and Workflow Automation:

  • Added .github/workflows/crowdin.yml to automate source upload, translation download, and seeding via Crowdin, triggered on relevant events and with workflow dispatch options.
  • Introduced crowdin.yml for Crowdin CLI configuration, mapping source and translation files, and specifying language code mappings.

Localization Support:

  • Added languages/pressbooks-shortcode-handler.pot as the template for translations, including plugin strings and metadata.
  • Updated pressbooks-shortcode-handler.php to load the plugin text domain on init, enabling translation support.

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

Successfully merging this pull request may close these issues.

1 participant