smithery.ai

i18n-helper

Handle WordPress internationalization. Use when adding translatable strings.

First seen Apr 19, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,895 B
  • docs SUMMARY.md 95 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

i18n Helper

Instructions

When adding translatable strings to the plugin:

  1. Use the correct text domain: 'retrologin'
  2. Choose the right function:

- __() - Return translated string - e() - Echo translated string - eschtml__() - Return escaped translated string - eschtmle() - Echo escaped translated string - esc_attr__() - Return escaped for HTML attributes

  1. Generate POT file: composer run make-pot
  2. Keep strings in English (US)

Translation Functions

Function Output Use When
__($text, $domain) Return Strings in PHP variables
_e($text, $domain) Echo Direct output
esc_html__($text, $domain) Return + escape Displaying user content
eschtmle($text, $domain) Echo + escape Direct output of user content
esc_attr__($text, $domain) Return + escape HTML attributes

Example

// Basic usage
__('Login Page', 'retrologin');
_e('Welcome back!', 'retrologin');

// With escaping
esc_html__('Please log in to continue', 'retrologin');
esc_attr__('Username', 'retrologin');

// In attributes
<input placeholder="<?php esc_attr_e('Enter username', 'retrologin'); ?>">

Generate Translations

# Generate POT file for translations
composer run make-pot

# POT file location: inc/languages/retrologin.pot

Guidelines

  • Always include text domain second parameter
  • Use escaping functions for user-generated content
  • Keep strings concise for translation
  • Avoid embedding variables in translatable strings