What problem does it solve?
This Skill addresses the challenge of ensuring that a WordPress plugin is properly internationalized (i18n) before release, covering critical aspects like string wrapping, text domain matching, and POT file freshness.
Core Features & Use Cases
- Internationalization Checks: Validates that every user-facing string is correctly wrapped for translation.
- Text Domain Consistency: Ensures that the text domain in the plugin matches the plugin folder name.
- Locale-Loading Hook Timing: Verifies that the locale is loaded at the correct time during plugin initialization.
- Translator-Friendly Placeholders: Checks that placeholders use
%1$s for consistent translation.
- Pluralization and Context: Ensures correct pluralization and context disambiguation for translations.
- Use Case: Before releasing a new version of your plugin, run this Skill to automatically audit and fix potential i18n issues.
Quick Start
Use the orbit-i18n skill to audit the i18n readiness of your plugin 'my-plugin'.