Skip to content
Back to skills

Locale Extractor

ASecurity

Tools to extract hardcoded text from Liquid files and replace them with translation keys.

  • 755 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 9, 2026
development

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill locale-extractor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Locale Extractor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Locale Extractor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-locale-extractor/badge)](https://www.skillsdirectory.com/skills/majiayu000-locale-extractor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Locale Extractor
version: 1.0.0
description: Tools to extract hardcoded text from Liquid files and replace them with translation keys.
allowed-tools:
  - extract_locales
---

## Capabilities

Helps developers internationalize their themes by finding hardcoded strings and moving them to a locale JSON structure.

## Tools Usage Guide

### 1. `extract_locales`

Scans Liquid content for hardcoded text inside HTML tags and proposes replacements.

- **Param** `liquid_content`: The raw liquid code.
- **Param** `section_name`: The name of the section (used for key namespacing).
- **Returns**:
  - `modified_liquid`: The code with `{{ 'key' | t }}` replacements.
  - `new_locales`: A JSON object with the extracted keys and values.

#### Example

**Input**:

```liquid
<h1>Hello World</h1>
<p>Welcome to our store</p>
```

**Output**:

```json
{
  "modified_liquid": "<h1>{{ 'sections.header.hello_world' | t }}</h1>\n<p>{{ 'sections.header.welcome' | t }}</p>",
  "new_locales": {
    "sections": {
      "header": {
        "hello_world": "Hello World",
        "welcome": "Welcome to our store"
      }
    }
  }
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.