Back to list
nhantran889

locale-extractor

by nhantran889

0🍴 0📅 Jan 4, 2026

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:

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

Output:

{
  "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"
      }
    }
  }
}

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon