Agent skill

Add Locale

by polarsource in polarsource/polar

Add a new translation locale to the Polar frontend. An agent skill from polarsource/polar.

Apache-2.0Auto-check: notesFrontend & Design

Install Add Locale

skills CLI
$ npx skills add polarsource/polar --skill add-locale -a claude-code

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

GitHub CLI
$ gh skill install polarsource/polar add-locale --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/polarsource/polar.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/add-locale .claude/skills/add-locale && 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
add-locale
GitHub stars
10k
Token cost
~844 tokens
SKILL.md length
331 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
Apache-2.0

At a glance

Add a new translation locale to the Polar frontend. An agent skill from polarsource/polar.

  • Works in 7 steps: Sync main → Create the branch → Register the locale → …
  • Tasks that involve Internationalization
  • SKILL.md covers Step 1: Sync main, Step 2: Create the branch, Step 3: Register the locale and Step 4: Generate the…, plus 3 more sections
  • Calls git and pnpm

What it does

Add Locale is an agent skill from polarsource/polar. Add a new translation locale to the Polar frontend. Walks through registering the locale, generating translations, wiring the generated file into the i18n package, and updating the public-facing docs. Expects the target locale's ISO 639-1 alpha-2 code (optionally with a BCP-47 region suffix, e.g. pt-PT).

Its SKILL.md is about 840 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Internationalization, Translation and DataFrames. The repository describes itself as: Polar — A billing platform for the intelligence era. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Internationalization
  • Tasks that involve Translation
  • Tasks that involve DataFrames

Example prompts

  • “/add-locale”

Requirements

  • Pre-approved tools (allowed-tools): Read, Edit, Write, Bash, Grep, Glob

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Sync main
  2. Create the branch
  3. Register the locale
  4. Generate the translation file
  5. Wire the locale into the i18n entrypoint
  6. Update the public docs
  7. Hand back to the user

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Edit
    • Write
    • Bash
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • pnpm

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

  • Network

    No URLs in SKILL.md. Its commands use git and pnpm, which can reach the network depending on how they are called.

    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.

Context cost

Add Locale loads about 844 tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 331 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~844

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Edit, Write, Bash, Grep, Glob

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 polarsource/polar at commit 71c1ac6, republished under its Apache-2.0 licence (© polarsource). 331 words, ~844 tokens.

Download SKILL.mdSave it as .claude/skills/add-locale/SKILL.md (or your agent's skills folder).
name
add-locale
description
Add a new translation locale to the Polar frontend. Walks through registering the locale, generating translations, wiring the generated file into the i18n package, and updating the public-facing docs. Expects the target locale's ISO 639-1 alpha-2 code (optionally with a BCP-47 region suffix, e.g. `pt-PT`).
allowed-tools
Read, Edit, Write, Bash, Grep, Glob
user-invocable
true

Add a new translation locale

This skill adds a new locale to the Polar frontend i18n package (clients/packages/i18n) and the corresponding public docs. Each step produces its own commit so the PR reads cleanly.

Ask the user for the locale if they haven't provided one. You need:

  • ${isoAlpha2} — the locale code used as the filename and config key (e.g. ko, ja, pt-PT). This is the value appended to SUPPORTED_LOCALES verbatim.
  • ${localeName} — the human-readable name used in LOCALE_NAMES (e.g. Korean (South Korea), Japanese). Follow the style of the existing entries in clients/packages/i18n/src/config.ts.

Throughout this doc, ${isoAlpha2} is substituted literally into filenames, branch names, commit messages, and identifiers.

Step 1: Sync main

bash
git checkout main
git pull --ff-only

Bail out if the working tree isn't clean — ask the user before stashing or discarding anything.

Step 2: Create the branch

bash
git checkout -b add-locale-${isoAlpha2}

Step 3: Register the locale

Edit clients/packages/i18n/src/config.ts:

  1. Append '${isoAlpha2}' to the SUPPORTED_LOCALES tuple (keep the as const).
  2. Add a ${isoAlpha2}: '${localeName}' entry to LOCALE_NAMES. Quote the key if it contains a dash (e.g. 'pt-PT').

Commit:

bash
git add clients/packages/i18n/src/config.ts
git commit -m "Register ${isoAlpha2}"

Step 4: Generate the translation file

bash
cd clients/packages/i18n
pnpm translate

This produces clients/packages/i18n/src/locales/${isoAlpha2}.ts. Confirm the file exists and has content before committing.

bash
git add clients/packages/i18n/src/locales/${isoAlpha2}.ts
git commit -m "Generate ${isoAlpha2}"

Step 5: Wire the locale into the i18n entrypoint

Edit clients/packages/i18n/src/index.ts:

  1. Add an import near the other locale imports:
    ts
    import ${importName} from './locales/${isoAlpha2}'
    For plain alpha-2 codes use the code itself (import ko from './locales/ko'). For hyphenated codes drop the dash and camelCase it to keep a valid identifier (import ptPT from './locales/pt-PT').
  2. Add the locale to the translations LocalesRecord object. Use the bare key when it's a valid identifier (ko,) or a quoted key when it's hyphenated ('pt-PT': ptPT,).

Commit:

bash
git add clients/packages/i18n/src/index.ts
git commit -m "Enable ${isoAlpha2}"

Step 6: Update the public docs

Edit docs/features/checkout/localization.mdx:

  • Add - ${localeName} (${isoAlpha2}) to the "Supported languages" list.
  • Remove the locale from the "coming soon" list if it was listed there.

Commit:

bash
git add docs/features/checkout/localization.mdx
git commit -m "Update localization docs"

Step 7: Hand back to the user

Summarize the four commits created on add-locale-${isoAlpha2} and leave the branch for the user to push and open a PR. Do not push or open a PR unless asked.

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

Files

Just SKILL.md in .agents/skills/add-locale of polarsource/polar.

Open the folder on GitHubat commit 71c1ac6

Compare with similar skills

Add Locale 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.

Add Locale compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Locale this skillpolarsource/polar10k—~844Automated safety check: NotesApache-2.0
Chatbox i18n Translatorchatboxai/chatbox42k—~508Automated safety check: PassGPL-3.0
Internationalization Workflow with i18niOfficeAI/AionUi33k1 repos~1.9kAutomated safety check: PassApache-2.0
Enforce Rules For I18nmoeru-ai/airi50k—~1.5kAutomated safety check: PassMIT
Claude Desktop Chinese Localizationjavaht/claude-desktop-zh-cn7.5k—~1.6kAutomated safety check: PassMIT
Translation ReviewDevolutions/UniGetUI26k—~1.3kAutomated safety check: PassMIT

Similar skills

  • Chatbox i18n Translator

    chatboxai/chatbox

    Translates new or changed i18n keys from a Chatbox Pro diff, staged changes or a commit range, writing the locale JSON files directly with a built-in glossary.

    42k GitHub stars~508 tokensUpdated 14 days ago
    Frontend & DesignAuto-check passed
  • Standards for keeping all user-facing text translatable: read the i18n config first, use namespaced keys, reuse shared strings and follow the key naming rules.

    33k GitHub starsUsed in 1 repo~1.9k tokens
    Frontend & DesignAuto-check passed
  • Review pending AIRI translations on Crowdin in a batch, then sync them into the repository.

    50k GitHub stars~1.5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Claude Desktop Chinese Localization

    javaht/claude-desktop-zh-cn

    Adds missing Simplified and Traditional Chinese translations to the Claude Desktop Chinese patch across three layers, then checks how many mappings actually hit.

    7.5k GitHub stars~1.6k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Translation Review

    Devolutions/UniGetUI

    Reviews UniGetUI .json language files for localization quality, detects parity issues, English-equal entries, wrong-script content, and cross-language outliers, then generates a dataset for…

    26k GitHub stars~1.3k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Frontend I18n

    langflow-ai/langflow

    Add, change, or review user-facing text in the Langflow frontend using the i18n system (i18next / react-i18next).

    155k GitHub stars~1k tokensUpdated today
    Frontend & DesignAuto-check passed

More from polarsource/polar

All 17 skills in this repo
  • Polar Python SDK

    polarsource/polar

    Integrate Polar billing in server-side Python applications using the versioned Polar and PolarAsync clients.

    10k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Polar Typescript SDK

    polarsource/polar

    Integrate Polar billing in server-side TypeScript applications using the versioned createPolar and createPolarCore clients.

    10k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Adr Check

    polarsource/polar

    Check a code change against the repo's Accepted Architecture Decision Records (ADRs) in handbook/engineering/decisions/ and report violations with citations.

    10k GitHub stars~771 tokensUpdated today
    Auto-check passed
  • API Surface Review

    polarsource/polar

    Review changes to Polar's API contract — Pydantic schemas, FastAPI endpoints, OpenAPI output and the generated SDKs.

    10k GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Billing Review

    polarsource/polar

    Review a diff that touches Polar's billing domain — subscriptions, cycles and crons, orders, billing entries, meters and usage, discounts, checkout, payments and dunning, refunds, disputes, payouts…

    10k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Interview Task

    polarsource/polar

    Prepare an interview task for a candidate, as part of our hiring process.

    10k GitHub stars~933 tokensUpdated today
    Auto-check passed

Questions about Add Locale

What does Add Locale do?

Add a new translation locale to the Polar frontend. An agent skill from polarsource/polar. Add Locale is an agent skill from polarsource/polar. Add a new translation locale to the Polar frontend.

When should I use Add Locale?

Add Locale fits situations like: tasks that involve Internationalization; tasks that involve Translation; tasks that involve DataFrames.

How do I install Add Locale in Claude Code?

Run `npx skills add polarsource/polar --skill add-locale -a claude-code`. Or copy the skill folder (.agents/skills/add-locale in polarsource/polar) into .claude/skills/add-locale in your project. Claude Code loads it when a task matches its description.

How do I install Add Locale in Codex?

Run `npx skills add polarsource/polar --skill add-locale -a codex`. Or copy the skill folder (.agents/skills/add-locale in polarsource/polar) into .agents/skills/add-locale in your project. Codex loads it when a task matches its description.

Can I use Add Locale 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 polarsource/polar --skill add-locale -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-locale, .gemini/skills/add-locale, .github/skills/add-locale and .opencode/skills/add-locale in your project.

What does Add Locale need to run?

Going by SKILL.md and its folder, Add Locale needs the command-line tools its instructions call (git and pnpm). Its frontmatter pre-approves these tools: Read, Edit, Write, Bash, Grep, Glob.

Does Add Locale access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Add Locale safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Add Locale use?

Add Locale is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Locale use?

About 844 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Locale?

Skills that share tags, products or a category with Add Locale: Chatbox i18n Translator (chatboxai/chatbox, 42k stars), Internationalization Workflow with i18n (iOfficeAI/AionUi, 33k stars), Enforce Rules For I18n (moeru-ai/airi, 50k stars) and Claude Desktop Chinese Localization (javaht/claude-desktop-zh-cn, 7.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Locale?

polarsource (a GitHub organization) maintains it in polarsource/polar, which has 10,343 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 9, 2026.

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