agentleFS
ifer47ifer47/markeron/.agents/skills/i18n/SKILL.md

i18n

Skill1.2k starsChanged 8 days agoMITView on GitHub

MarkerOn two-layer i18n. Use when adding or changing user-visible text, editing locale files, tray/window titles, or language switching.

51 other projects use a version of this.

Trending

Steady talk.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 2 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 2 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the ifer47/markeron repository that our weekly crawl found: only 4 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Used with

Projects with it also use oss-pr, pr-automation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • volovelySkill

    pr-fix

    This skill should be used when the user asks to "fix PR comments", "address PR feedback", "resolve PR comments", provides a GitHub PR URL with intent to fix, or says "pr-fix". It reads all review comments on a PR, decides which need code fixes vs. replies, makes the fixes, and posts replies — all with explicit user approval before any GitHub action.

    Also in 3 projects that use this

  • GitHubSkill

    state-management

    CoreAI Sandbox's TanStack Query + mock-JSON data layer. USE WHEN: editing data-fetching hooks (`app/hooks/use*.ts`), adding mock data in `app/data/`, or wiring a component to query state.

    Also in 4 projects that use this

  • xfstudioSkill

    graphql

    GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.

    Also in 3 projects that use this

  • MicrosoftSkill

    bump-version

    Bump the VoxelPic version to a user-specified value. USE FOR: setting or updating the project version across all files that embed it. Applies to requests like 'bump version to X.Y.Z', 'set version', or 'update version'.

    Also in 4 projects that use this

  • +2 more from CES-Ltd

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use useI18n() → t('section.key') in components.

    line 24
  2. Very specific:

    Add the key to en.ts and zh-CN.ts.

    line 30
  3. Very specific:

    Add or update a case in src/i18n/index.test.ts when the copy is user-facing.

    line 32
  4. Very specific:

    Read src-tauri/src/i18n.rs for the current field list.

    line 49
  5. Very specific:

    Use i18n: when the change is primarily translation or copy (feeds 🧹 Improvements in release notes).

    line 60

“Common” is measured: kept by at least 6 in 10 of the 42 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Internationalization (MarkerOn)

MarkerOn has two string layers. Changing user-visible text may require both.

1. Frontend (Vue UI)

FileLocale
src/i18n/en.tsEnglish
src/i18n/zh-CN.ts简体中文
  • Always edit both files with the same key structure (dot-path nested objects).
  • Use useI18n() → t('section.key') in components; never hardcode UI strings.
  • Optional vars: t('key', { name: value }) replaces {name} in the string.
  • Register new locales in src/i18n/index.ts (messages map + availableLocales).

Checklist (new/changed UI copy)

  1. Add the key to en.ts and zh-CN.ts.
  2. Replace literal text in Vue with t('…').
  3. Add or update a case in src/i18n/index.test.ts when the copy is user-facing.

2. Backend (Rust — tray, shortcuts, window title)

src-tauri/src/i18n.rs holds the Strings struct and the USE_CHINESE switch (zh/en only). It is not a dot-path i18n system.

  • i18n::init() runs on startup from the saved locale.
  • i18n::set_locale() runs on language change.
  • save_locale rebuilds the tray menu and updates the settings window title.

Touch i18n.rs when adding:

  • a tray menu item label;
  • a system-facing shortcut description shown in settings;
  • the settings window title.

Read src-tauri/src/i18n.rs for the current field list; do not rely on a copied list here.

Locale persistence flow

GeneralTab changeLocale → setLocale (frontend) → invoke('save_locale')
  → config.json + i18n::set_locale + rebuild_tray_menu + set_title

Commit type

Use i18n: when the change is primarily translation or copy (feeds 🧹 Improvements in release notes).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.