Agent skill

Frappe Core Translation

by Impertio-Studio in Impertio-Studio/Frappe_Claude_Skill_Package

A skill your agent uses when implementing translations/i18n in Frappe v14-v16 apps.

MITAuto-check passedWriting & Content

Install Frappe Core Translation

skills CLI
$ npx skills add Impertio-Studio/Frappe_Claude_Skill_Package --skill frappe-core-translation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Impertio-Studio/Frappe_Claude_Skill_Package frappe-core-translation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Impertio-Studio/Frappe_Claude_Skill_Package.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/source/core/frappe-core-translation .claude/skills/frappe-core-translation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
frappe-core-translation
GitHub stars
189
Token cost
~1.9k tokens
SKILL.md length
536 words
Files
4 (incl. references)
Skills in repo
61
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when implementing translations/i18n in Frappe v14-v16 apps.

  • Works in 6 steps: Write translatable strings using _() /… → Extract untranslated strings → Translate the extracted strings… → …
  • Implementing translations/i18n in Frappe v14-v16 apps
  • SKILL.md covers Quick Reference, Decision Tree, Translation Priority (Highest… and Version Differences, plus 9 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Frappe Core Translation is an agent skill from Impertio-Studio/Frappe_Claude_Skill_Package. Use when implementing translations/i18n in Frappe v14-v16 apps. Covers () in Python, () in JavaScript, CSV translation files, bench commands, string extraction rules, lazy translation lt(), PO/MO files [v15+], RTL support, and custom app translations. Prevents common mistakes with f-strings, concatenation, and template literals that break string extraction. Keywords: translation, i18n, (), (), lt(), CSV, PO, gettext,, translate my app, multi-language, text not translated, wrong language, how to add translation…

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/anti-patterns.md`, `references/api-reference.md` and `references/csv-and-bench.md`). Compatibility notes: Claude Code, Claude.ai Projects, Claude API. Frappe v14-v16.

It sits in Writing & Content, covering Translation and Internationalization. It works with JavaScript and Python. The repository describes itself as: 60 deterministic Claude AI skills for Frappe Framework & ERPNext v14-v16 development and operations. The licence is MIT.

When your agent uses it

  • Implementing translations/i18n in Frappe v14-v16 apps
  • Tasks that involve Translation
  • Tasks that involve Internationalization

Example prompts

  • “/frappe-core-translation”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): Claude Code, Claude.ai Projects, Claude API. Frappe v14-v16.

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Write translatable strings using _() / __() with positional placeholders
  2. Extract untranslated strings
  3. Translate the extracted strings (manually or via PO editor)
  4. Place translations
  5. Compile (v15+ PO only): bench compile-po-to-mo --app {app}
  6. Clear cache: bench --site {site} clear-cache

What it can do on your machine

Read from SKILL.md and the folder at commit 36cfa80. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are csv, bash, python and javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Claude Code, Claude.ai Projects, Claude API. Frappe v14-v16.

    From compatibility in the SKILL.md frontmatter.

Context cost

Frappe Core Translation loads about 1.9k tokens when it runs, and up to ~7.8k if it reads all its reference files. Until then it costs about 148 tokens; SKILL.md has 536 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~148
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Impertio-Studio/Frappe_Claude_Skill_Package at commit 36cfa80, republished under its MIT licence (© Impertio-Studio). 536 words, ~1,930 tokens.

Download SKILL.mdSave it as .claude/skills/frappe-core-translation/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
frappe-core-translation
description
Use when implementing translations/i18n in Frappe v14-v16 apps. Covers _() in Python, __() in JavaScript, CSV translation files, bench commands, string extraction rules, lazy translation _lt(), PO/MO files [v15+], RTL support, and custom app translations. Prevents common mistakes with f-strings, concatenation, and template literals that break string extraction. Keywords: translation, i18n, _(), __(), _lt(), CSV, PO, gettext,, translate my app, multi-language, text not translated, wrong language, how to add translation. bench get-untranslated, RTL, localization.
compatibility
Claude Code, Claude.ai Projects, Claude API. Frappe v14-v16.
license
MIT
metadata.author
OpenAEC-Foundation
metadata.version
3.0

Frappe Translation / i18n

Deterministic patterns for translating Frappe apps across v14, v15, and v16.


Quick Reference

TaskPythonJavaScript
Translate string_("Hello")__("Hello")
With substitution_("Hello {0}").format(name)__("Hello {0}", [name])
With context_("Change", context="Coins")__("Change", null, "Coins")
Lazy (module-level)_lt("Pending") [v15+]N/A
Check RTLfrappe.utils.is_rtl()frappe.utils.is_rtl()

Decision Tree

Need to translate a string?
├── In Python (.py)?
│   ├── Inside a function/method → _("text {0}").format(val)
│   ├── Module-level constant [v15+] → _lt("text")
│   └── Module-level constant [v14] → define inside function or use lazy
├── In JavaScript (.js)?
│   └── ALWAYS → __("text {0}", [val])
├── In Jinja template (.html)?
│   └── {{ _("text") }}
├── In Vue (.vue)?
│   └── __("text") in <script>, {{ __("text") }} in <template>
└── DocType label/description/option?
    └── Auto-extracted — no _() needed

Where do translations live?
├── v14 → apps/{app}/{app}/translations/{lang}.csv
├── v15+ → apps/{app}/{app}/locale/{lang}/LC_MESSAGES/{app}.po
└── User overrides → Translation DocType (highest priority)

Need to extract untranslated strings?
├── v14 → bench --site {site} get-untranslated {lang} {output}
└── v15+ → bench generate-pot-file --app {app}

Translation Priority (Highest First)

PrioritySourceScope
1Translation DocType (user overrides)Per-site
2MO files (locale/{lang}/.../{app}.mo)Per-app [v15+]
3CSV files (translations/{lang}.csv)Per-app
4Parent language (e.g., pt for pt-BR)Fallback

Version Differences

Featurev14v15v16
_() / __()YesYesYes
_lt() lazy translationNoYesYes
CSV translationsYesYes (legacy)Yes (legacy)
PO/MO (gettext)NoYesYes
bench generate-pot-fileNoYesYes
Babel JS extractorNoYesYes
Type hints on _()NoNoYes

Auto-Extracted Strings (No _() Needed)

These are extracted automatically by the framework:

  • DocType labels and descriptions
  • Select field options (each option line)
  • Workflow states and actions
  • Print Format labels
  • Report column labels
  • Notification subjects (not body)
  • Dashboard chart labels

String Extraction Rules

File TypeExtractorWhat It Finds
.pyBabel (AST)_("..."), _lt("...") calls
.jsBabel tokenizer [v15+] / regex [v14]__("...") calls
.htmlRegex{{ _("...") }} in Jinja
.vueSame as JS__("...") in script/template
.jsonDocType parserLabels, descriptions, options

CRITICAL: Extractors work on the AST/tokens. They CANNOT extract dynamically constructed strings. See Anti-Patterns.


Anti-Patterns (NEVER Do These)

PatternWhy It BreaksCorrect Form
_(f"Hello {name}")f-string not extractable_("Hello {0}").format(name)
_("Hello " + name)Concatenation fragments_("Hello {0}").format(name)
_("Welcome %s") % nameOld-style not extractable_("Welcome {0}").format(name)
__(`Hello ${name}`)Template literal not extractable__("Hello {0}", [name])
_(" Hello ")Leading/trailing spaces trimmed_("Hello")
_("item" if x else "items")Ternary inside _()_("item") if x else _("items")
_(variable)Variable not extractable_("Known String")

Full anti-pattern catalog with code examples: references/anti-patterns.md


CSV Translation File Format

Location: apps/{app}/{app}/translations/{lang}.csv

csv
"source","translation","context"
"Hello","Hallo",""
"Change","Wisselgeld","Coins"
"Change","Wijziging","Amendment"
  • ALWAYS use UTF-8 encoding (no BOM)
  • ALWAYS quote all fields with double quotes
  • Context column is optional but MUST be present (empty string if unused)
  • No hooks registration needed — auto-discovered from translations/ directory

Show full SKILL.md (214 more words)Show less

PO/MO Files [v15+]

Location: apps/{app}/{app}/locale/{lang}/LC_MESSAGES/{app}.po

bash
# Generate POT template
bench generate-pot-file --app {app}

# Migrate existing CSV to PO
bench migrate-csv-to-po --app {app}

# Compile PO to MO (required for runtime)
bench compile-po-to-mo --app {app}

PO files follow standard GNU gettext format. Use any PO editor (Poedit, Weblate, Transifex).


Bench Commands

CommandVersionPurpose
bench --site {site} get-untranslated {lang} {output.csv}AllExport untranslated strings
bench update-translations {lang} {untranslated.csv} {translated.csv}AllImport translations
bench generate-pot-file --app {app}v15+Generate .pot template
bench migrate-csv-to-po --app {app}v15+Convert CSV to PO format
bench compile-po-to-mo --app {app}v15+Compile PO to binary MO

RTL Support

Hardcoded RTL languages: ar (Arabic), he (Hebrew), fa (Persian/Farsi), ps (Pashto)

python
# Python
if frappe.utils.is_rtl():
    # Apply RTL-specific logic
javascript
// JavaScript
if (frappe.utils.is_rtl()) {
    // Apply RTL-specific logic
}
  • Frappe auto-applies dir="rtl" to the <html> element
  • ALWAYS use logical CSS properties (margin-inline-start not margin-left) for RTL compatibility
  • Bootstrap RTL stylesheet is auto-loaded when RTL language is active

Custom App Translation Workflow

Adding translations to your custom app:
  1. Write translatable strings using _() / __() with positional placeholders
  2. Extract untranslated strings:
    • v14: bench --site {site} get-untranslated {lang} untranslated.csv
    • v15+: bench generate-pot-file --app {app}
  3. Translate the extracted strings (manually or via PO editor)
  4. Place translations:
    • CSV: apps/{app}/{app}/translations/{lang}.csv
    • PO: apps/{app}/{app}/locale/{lang}/LC_MESSAGES/{app}.po
  5. Compile (v15+ PO only): bench compile-po-to-mo --app {app}
  6. Clear cache: bench --site {site} clear-cache

Reference Files

FileContents
references/api-reference.mdFull Python _() and JS __() API with all signatures and edge cases
references/csv-and-bench.mdCSV format spec, bench commands, PO/MO workflow, custom app setup
references/anti-patterns.mdComplete anti-pattern catalog with failing and corrected examples

© Impertio-Studio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in skills/source/core/frappe-core-translation of Impertio-Studio/Frappe_Claude_Skill_Package.

  • SKILL.md
  • references/anti-patterns.md
  • references/api-reference.md
  • references/csv-and-bench.md

Open the folder on GitHubat commit 36cfa80

Compare with similar skills

Frappe Core Translation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Frappe Core Translation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frappe Core Translation this skillImpertio-Studio/Frappe_Claude_Skill_Package189—~1.9kAutomated safety check: PassMIT
Translatetagspaces/tagspaces5.3k—~2.2kAutomated safety check: PassAGPL-3.0
Error Translatorlaolaoshiren/claude-code-skills-zh880—~609Automated safety check: PassMIT
Module Level Code TranslatorArabelaTso/Skills-4-SE253—~1.9kAutomated safety check: PassApache-2.0
Code TranslationArabelaTso/Skills-4-SE253—~3.1kAutomated safety check: PassApache-2.0
Lingui Best PracticesB0und/WikiSpeedrun1332 repos~4.2kAutomated safety check: PassMIT

Similar skills

  • Translate

    tagspaces/tagspaces

    Translate new or untranslated i18n strings from the English locale files (core.json + peri.json) into all other locales, maintaining consistency with each language's existing translations.

    5.3k GitHub stars~2.2k tokensUpdated today
    Writing & ContentAuto-check passed
  • Error Translator

    laolaoshiren/claude-code-skills-zh

    编程错误消息翻译专家 — 将英文错误消息翻译成中文,解释原因并提供修复方案

    880 GitHub stars~609 tokensUpdated 6 days ago
    Writing & ContentAuto-check passed
  • Module Level Code Translator

    ArabelaTso/Skills-4-SE

    Translate source code between programming languages at function, class, and module levels while preserving behavior and generating verification tests.

    253 GitHub stars~1.9k tokensUpdated 1 mo ago
    Writing & ContentAuto-check passed
  • Code Translation

    ArabelaTso/Skills-4-SE

    Convert code between programming languages while preserving functionality and semantics.

    253 GitHub stars~3.1k tokensUpdated 1 mo ago
    Writing & ContentAuto-check passed
  • Lingui Best Practices

    B0und/WikiSpeedrun

    Implement internationalization with Lingui in React and JavaScript applications.

    133 GitHub starsUsed in 2 repos~4.2k tokens
    Frontend & DesignAuto-check passed
  • Ok Script I18n

    AliceJump/ok-end-field

    Maintain gettext translations for ok-script task UI and runtime messages.

    555 GitHub stars~828 tokensUpdated today
    Frontend & DesignAuto-check passed

More from Impertio-Studio/Frappe_Claude_Skill_Package

All 61 skills in this repo
  • Frappe Ops Website Deploy

    Impertio-Studio/Frappe_Claude_Skill_Package

    Deploy HTML/CSS websites to ERPNext/Frappe (v15/v16) as Web Pages via the REST API.

    189 GitHub stars~2.5k tokensUpdated 24 days ago
    Auto-check passed
  • Frappe Agent Architect

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when designing multi-app Frappe architectures, deciding whether to split functionality into separate apps, or implementing cross-app communication patterns.

    189 GitHub stars~2.8k tokensUpdated 24 days ago
    Auto-check passed
  • Frappe Agent Debugger

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when debugging Frappe errors, using bench console for live inspection, analyzing tracebacks, or reading Frappe log files.

    189 GitHub stars~2.9k tokensUpdated 24 days ago
    Auto-check passed
  • Frappe Agent Interpreter

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when receiving vague or unclear ERPNext/Frappe development requests that need interpretation.

    189 GitHub stars~3.2k tokensUpdated 24 days ago
    Auto-check passed
  • Frappe Agent Migrator

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when migrating a Frappe app between major versions, detecting breaking API changes, or resolving post-migration errors.

    189 GitHub stars~2.8k tokensUpdated 24 days ago
    Auto-check: notes
  • Frappe Agent Validator

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when reviewing or validating Frappe/ERPNext code against best practices and common pitfalls.

    189 GitHub stars~2.8k tokensUpdated 24 days ago
    Auto-check passed

Questions about Frappe Core Translation

What does Frappe Core Translation do?

A skill your agent uses when implementing translations/i18n in Frappe v14-v16 apps. Frappe Core Translation is an agent skill from Impertio-Studio/Frappe_Claude_Skill_Package. Use when implementing translations/i18n in Frappe v14-v16 apps.

When should I use Frappe Core Translation?

Frappe Core Translation fits situations like: implementing translations/i18n in Frappe v14-v16 apps; tasks that involve Translation; tasks that involve Internationalization.

How do I install Frappe Core Translation in Claude Code?

Run `npx skills add Impertio-Studio/Frappe_Claude_Skill_Package --skill frappe-core-translation -a claude-code`. Or copy the skill folder (skills/source/core/frappe-core-translation in Impertio-Studio/Frappe_Claude_Skill_Package) into .claude/skills/frappe-core-translation in your project. Claude Code loads it when a task matches its description.

How do I install Frappe Core Translation in Codex?

Run `npx skills add Impertio-Studio/Frappe_Claude_Skill_Package --skill frappe-core-translation -a codex`. Or copy the skill folder (skills/source/core/frappe-core-translation in Impertio-Studio/Frappe_Claude_Skill_Package) into .agents/skills/frappe-core-translation in your project. Codex loads it when a task matches its description.

Can I use Frappe Core Translation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Impertio-Studio/Frappe_Claude_Skill_Package --skill frappe-core-translation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frappe-core-translation, .gemini/skills/frappe-core-translation, .github/skills/frappe-core-translation and .opencode/skills/frappe-core-translation in your project.

What does Frappe Core Translation need to run?

SKILL.md names no scripts, command-line tools or credentials: Frappe Core Translation is instructions for the agent only. Our summary lists: Python 3. Compatibility (from SKILL.md): Claude Code, Claude.ai Projects, Claude API. Frappe v14-v16..

Does Frappe Core Translation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Frappe Core Translation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Frappe Core Translation use?

Frappe Core Translation is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Frappe Core Translation use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.9k tokens, read only when the agent opens those files.

What are the alternatives to Frappe Core Translation?

Skills that share tags, products or a category with Frappe Core Translation: Translate (tagspaces/tagspaces, 5.3k stars), Error Translator (laolaoshiren/claude-code-skills-zh, 880 stars), Module Level Code Translator (ArabelaTso/Skills-4-SE, 253 stars) and Code Translation (ArabelaTso/Skills-4-SE, 253 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frappe Core Translation?

Impertio-Studio (a GitHub organization) maintains it in Impertio-Studio/Frappe_Claude_Skill_Package, which has 189 GitHub stars. The repository holds 61 skills in this directory. The repository was last updated on September 17, 2026.

Source: Impertio-Studio/Frappe_Claude_Skill_Package on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.