i18n

i18n is a cursor rule for Cursor from kubev2v/forklift-console-plugin. It costs 0 tokens per session (1,028 once invoked), scanned A, original, Apache-2.0.

Guidelines for internationalization, the practice of preparing an application to display translated text in different languages.

In plain words
What is it for?
Use it when adding translated text, inserting values into messages, handling singular and plural forms, or working with the English source locale.
Why use it?
It helps keep translation keys, variables, plural forms, and translation files consistent.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/kubev2v/forklift-console-plugin/i18n
Clone the repo
git clone --depth 1 https://github.com/kubev2v/forklift-console-plugin

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for i18n

README.md
[![agentmods](https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/i18n.svg)](https://agentmods.dev/rules/kubev2v/forklift-console-plugin/i18n)
Your own site
<a href="https://agentmods.dev/rules/kubev2v/forklift-console-plugin/i18n"><img src="https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/i18n.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,028 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01028
Opus 5 $0.00000 $0.00514
Sonnet 5 $0.00000 $0.00206
Haiku 4.5 $0.00000 $0.00103

Measured 3d ago against content hash 3dfd88c4d03d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

i18n scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/i18n.mdc · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

i18n Guidelines (Supplement)

For basic i18n usage (useForkliftTranslation, ForkliftTrans, t function), see AGENTS.md. This rule adds detailed patterns.


1. Overview

  • Uses react-i18next for runtime translations
  • Plugin namespace: plugin__forklift-console-plugin
  • Translation files: locales/{lang}/plugin__forklift-console-plugin.json
  • Source language: English (en)

2. Translation Utilities

For the three utilities (useForkliftTranslation, ForkliftTrans, t) and when to use each, see AGENTS.md.


3. String Patterns

Interpolation

t('Hello, {{name}}', { name: userName })
t('{{count}} of {{total}} VMs running', { count: running, total })

Pluralization

t('{{count}} plan', { count: planCount })
// Requires locale file entries (i18next v4 / CLDR suffixes):
// "{{count}} plan_one": "{{count}} plan"
// "{{count}} plan_other": "{{count}} plans"
// Keys carry _one/_other/_many; VALUES must NOT include those suffixes.

Extractor defaultValue (i18next-cli)

In i18next.config.ts, return the 4th argument (value = unsuffixed source string), not key:

defaultValue: (_key, _namespace, _language, value) => value

For plurals, key is already suffixed (…_one). Returning key leaks CLDR suffixes into secondary-locale placeholder values. English is cleaned by ocp-i18n-defaults; secondary locales are not.


4. Console Extensions

For labels in plugin extension files, use the special format:

{
  "type": "console.navigation/href",
  "properties": {
    "name": "%plugin__forklift-console-plugin~Migration Plans%",
    "href": "/mtv/plans"
  }
}

5. What to Translate vs Not

Always Translate

  • Page titles, headings, button labels
  • Form labels, placeholders, help text
  • Error messages, success messages
  • Tooltip text, table headers
  • Empty state and loading messages

Never Translate

  • Proper nouns (Kubernetes, OpenShift, Forklift, PatternFly)
  • Technical identifiers (VM names, namespaces, resource names)
  • API field names, code values, URLs
  • Log messages (internal)

Read the full file on GitHub · 144 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 144 lines · 0 tokens per session scan A 3dfd88c4d03d

Subscribe to this mod's changes

i18n is a cursor rule published in the GitHub repository kubev2v/forklift-console-plugin (11 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,028 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.