internationalization

internationalization is a skill for Claude Code, Codex from Cumulocity-IoT/cumulocity-skills. It costs 100 tokens per session (2,998 once invoked), scanned A, original, Apache-2.0.

A guide to translating text in Cumulocity Web SDK applications. Internationalization, often called i18n, means preparing an application to support multiple languages and regions.

In plain words
What is it for?
Use it to translate source-code text, extract strings, manage .po translation files, override existing translations, and add languages such as German, Spanish, Japanese, or Chinese.
Why use it?
It explains both how to mark text for translation and how to add or update the translation files the application uses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is msgmerge --update ./src/locales/fr.po ./locales/locales.pot.

Good fit Use it to translate source-code text, extract strings, manage .po translation files, override existing translations, and add languages such as German, Spanish, Japanese, or Chinese.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Cumulocity-IoT/cumulocity-skills
agentmods
npx agentmods add skills/cumulocity-iot/cumulocity-skills/internationalization

Made for: Claude Code, Codex.

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 internationalization

README.md
[![agentmods](https://agentmods.dev/badge/skills/cumulocity-iot/cumulocity-skills/internationalization/github.svg)](https://agentmods.dev/skills/cumulocity-iot/cumulocity-skills/internationalization)
Your own site
<a href="https://agentmods.dev/skills/cumulocity-iot/cumulocity-skills/internationalization"><img src="https://agentmods.dev/badge/skills/cumulocity-iot/cumulocity-skills/internationalization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for internationalization

Your own site · 80×15
<a href="https://agentmods.dev/skills/cumulocity-iot/cumulocity-skills/internationalization"><img src="https://agentmods.dev/badge/skills/cumulocity-iot/cumulocity-skills/internationalization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,998 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00100 $0.02998
Opus 5 $0.00050 $0.01499
Sonnet 5 $0.00020 $0.00600
Haiku 4.5 $0.00010 $0.00300

Measured 12d ago against content hash f83f9ed37d0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

internationalization scanned grade A with 1 finding 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 12d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -o ./locales/framework.pot https://unpkg.com/@c8y/ngx-components@latest/locales/locales.pot
skills/internationalization/SKILL.md · 417 lines

How it starts

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

Cumulocity Internationalization (i18n) Skill

Overview

Cumulocity Web SDK uses the gettext .po file format for translations. There are two distinct problems to solve:

  1. Annotating & pushing text through the translation pipeline in source code
  2. Providing the translated strings via .po files and wiring them into the app

This skill covers both, plus the complete workflow for adding a brand-new language.


Built-in Languages

The @c8y/ngx-components package ships ready-made .po files for these locales:

Code Language
de German
en English
en_US English (US)
es Spanish
fr French
ja_JP Japanese
ko Korean
nl Dutch
pl Polish
pt_BR Brazilian Portuguese
zh_CN Simplified Chinese
zh_TW Traditional Chinese

To activate any of these, only Steps 5 and 6 of the "Adding a New Language" section below are required — no translation work needed.


Step 1 — Annotating Text in Source Code

Four mechanisms are available. They can be combined freely.

gettext(string)

Annotates a static string literal for extraction. Does not translate at runtime — use it to mark strings defined in TypeScript that are translated elsewhere (e.g. via pipe or TranslateService).

import { gettext } from '@c8y/ngx-components';

const label = gettext('Remove Device');

Rules:

  • Must be a string literal — not a variable or template literal.
  • gettext('Remove Device')
  • gettext(myVar)
  • gettext(`Remove ${condition ? 'Device' : 'Group'}`)

translate Pipe

Translates the string at runtime inside templates. When applied to a static string literal it also annotates it for extraction — no separate gettext() call needed.

<!-- Simple -->
{{ 'Device' | translate }}

<!-- With interpolated placeholders — use @let to pre-resolve -->
@let removeLabel = 'Remove Device' | translate;
@let cancelLabel = 'Cancel' | translate;
{{ confirmed ? removeLabel : cancelLabel }}

<!-- Or expose gettext on the component class and use it inline -->
{{ (confirmed ? gettext('Remove Device') : gettext('Cancel')) | translate }}

Read the full file on GitHub · 417 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. 12d ago First seen · 417 lines · 100 tokens per session scan A f83f9ed37d0d

Subscribe to this mod's changes

internationalization is a skill published in the GitHub repository Cumulocity-IoT/cumulocity-skills (5 stars, last pushed 11d ago), licensed Apache-2.0. It adds 100 tokens to every session and 2,998 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

angular-best-practices-transloco

Transloco i18n best practices for Angular. Covers runtime translation, lazy-loaded translation files per route, and test mocking. Activates when working with @jsverse/transloco. Do not use for ngx-translate or i18next. Install alongside angular-best-practices for full coverage.

alfredoperez/angular-best-practices · 70 tokens

i18n-date-patterns

Implements internationalization (i18n) in React applications. Covers user-facing strings, date/time handling, locale-aware formatting, ICU MessageFormat, and RTL support. Use when building multilingual UIs or formatting dates/currency.

yonatangross/orchestkit · 53 tokens

i18n-manager

An internationalization tool for managing text in software for different languages and regions. It extracts strings, finds missing translations, creates locale files, and reports coverage.

chainlesschain/chainlesschain · 28 tokens

localization-engineer

Expert in internationalization (i18n), multi-language support, and localization.

daffy0208/ai-dev-standards · 20 tokens

nextjs-i18n

Best practices for multi-language handling, locale routing, and detection strategies across App and Pages Router. Use when adding i18n, locale routing, or language detection in Next.js.

FilippoDeSilva/skills · 42 tokens

tongwen

Use when translating engineering CAD drawings between languages — DWG text extraction, translation workspace with terminology management, quality-checked write-back. TongWen (同文): local-first CAD/BIM lossless translation suite for AutoCAD 2019-2026.

znlgis/opengis-skills · 55 tokens