Skip to content

Add text domain to dashboard i18n calls - #72

Open
GreggFranklin wants to merge 3 commits into
groundhoggwp:masterfrom
GreggFranklin:fix/translations
Open

Add text domain to dashboard i18n calls#72
GreggFranklin wants to merge 3 commits into
groundhoggwp:masterfrom
GreggFranklin:fix/translations

Conversation

@GreggFranklin

Copy link
Copy Markdown
Contributor

Update dashboard JS (and minified build) to include the 'groundhogg' text domain on wp.i18n calls and related strings for proper translation context. Also add/update locale JSON translation files (de_DE, es_AR, es_ES, fr_FR, it_IT, pt_BR) to include the new/changed strings.

Update dashboard JS (and minified build) to include the 'groundhogg' text domain on wp.i18n calls and related strings for proper translation context. Also add/update locale JSON translation files (de_DE, es_AR, es_ES, fr_FR, it_IT, pt_BR) to include the new/changed strings.
Wrap dashboard stat labels with __() in assets/js/admin/features/dashboard.js (and update the minified bundle). Register a new admin script handle 'groundhogg-admin-components' in includes/scripts.php. Add and update generated locale JSON files for multiple locales (de_DE, es_AR, es_ES, fr_FR, it_IT, pt_BR) containing translations for assets/js/admin/components.js and dashboard.js. These changes enable proper translations for dashboard UI strings and ensure the components script is enqueued for admin usage.
Add new dashboard UI scripts (assets/js/admin/features/dashboard 2.js and minified) which implement the dashboard widgets and related components. Update includes/scripts.php to include 'groundhogg-make-el' and 'groundhogg-admin-saved-replies' in the admin script list so the dashboard has its required dependencies available.
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