Automated summary
Governs adding, editing, and reviewing user-facing strings in the Langflow frontend through i18next/react-i18next, enforcing t(...) usage and requiring every key in all seven locale files.
Strengths
- Two crisp, checkable rules: every visible string goes through t(...), and every new key lands in all seven locales
- Explains the actual setup (English bundled, other languages lazy-loaded, fallbackLng hiding misses) and why human review is still required
- Covers real pitfalls: concatenating translated fragments, JSX inside strings, plural forms via _one/_other, and Intl formatting for dates and numbers
- Ships a review checklist plus a ready-to-run grep loop that prints the locale files missing a key
Limitations
- Tightly bound to Langflow: file paths, locale list, and key namespacing do not transfer as-is
- Actual translations for the six non-English locales are left to the author's judgment, with only a PR flag as fallback
- No automation beyond the grep snippet — no linter, CI check, or verification script is provided
Reach for it whenever a change touches visible text in the Langflow frontend, or when reviewing a diff that contains labels, buttons, tooltips, error messages, or empty states.
Do not use it for backend strings, log messages, or code identifiers, nor for a frontend project that does not use i18next.
Security analysis
SafeThe skill is purely instructional guidance for using i18next in a frontend codebase. It contains no destructive commands, no network exfiltration, no secret handling, and no obfuscated payloads; the only shell snippet is a read-only grep loop over locale JSON files.
No concerns found
How this analysis is madeExamples
Add a tooltip to the delete button in the flow list — it should say 'Deleting a flow cannot be undone.' Make sure the string goes through the i18n system and the key exists in every locale file.Review my current changes for hardcoded user-facing strings, keys missing from any of the locales, and any place where I concatenate translated fragments instead of using interpolation.Show a toast after a bulk import saying how many flows were imported. Use i18next plural forms and add the key to all seven locale files.name: frontend-i18n description: Add, change, or review user-facing text in the Langflow frontend using the i18n system (i18next / react-i18next). Use whenever a change adds or edits UI strings — labels, buttons, tooltips, modals, toasts, error messages, empty states — or when reviewing a diff that contains user-facing text. Every user-facing string must go through the translation system and every new key must exist in ALL locale files. Do NOT use for backend strings, log messages, or code identifiers.
Frontend i18n
The Langflow frontend is internationalized with i18next + react-i18next. Locales live in src/frontend/src/locales/ — currently en, de, es, fr, ja, pt, zh-Hans. A hardcoded user-facing string, or a key missing from one locale, ships broken UI for part of the user base.
The two rules
- Every user-facing string goes through
t(...)— never hardcoded JSX text for labels, buttons, tooltips, modals, toasts, errors, placeholders,aria-labels, or empty states. - Every new key is added to ALL locale files in the same PR (
en.json,de.json,es.json,fr.json,ja.json,pt.json,zh-Hans.json).fallbackLng: "en"means a missing key silently shows English — it won't crash, which is exactly why reviews must catch it.
How it works here
- Config:
src/frontend/src/i18n.ts— a custom i18next instance.enis bundled statically; other languages are lazy-loaded byloadLanguage()via dynamic import. Language preference comes fromlocalStorage.getItem("languagePreference"), normalized (e.g.zh-CN→zh-Hans, unknown →en). - Keys are flat, dot-namespaced by feature:
deleteModal.title,errors.fileTooLarge,crash.restartButton. Follow the existing namespace of the area you're touching; create a new prefix only for a genuinely new surface. - Interpolation uses
{{variable}}in the string and an options object in the call.
Adding a string (the pattern)
import { useTranslation } from "react-i18next";
const { t } = useTranslation();
<span>{t("deleteModal.title")}</span>
<p>{t("errors.fileTooLarge", { maxSizeMB: "10MB" })}</p>
In locales/en.json (and every other locale file):
"errors.fileTooLarge": "The file size is too large. Please select a file smaller than {{maxSizeMB}}."
For the non-English locales, write a real translation when confident; if not, add the key with the English value and flag it in the PR — a present-but-untranslated key is visible and searchable, a missing key is invisible.
Rules that prevent real bugs
- Don't concatenate translated fragments (
t("a") + name + t("b")) — word order differs across languages. Use one key with interpolation:t("greeting", { name }). - Don't put JSX/HTML inside translation strings; compose in JSX around
t()calls (see howcrash.descriptionBefore/crash.githubIssues/crash.descriptionAftersplit around a link). - Plurals: use i18next plural forms (
_one/_othersuffixes), notcount === 1 ? ... : .... - Keys are code: renaming or deleting a key means updating all seven locale files — an orphan key in one file is dead weight; a rename missed in one file is a regression.
- Dates/numbers/currency: format with
Intl.*using the active locale, never hardcoded formats.
Review checklist (apply to any diff with UI text)
- [ ] No hardcoded user-facing string in JSX (including
placeholder,title,aria-label, toast/error text). - [ ] Every new key exists in all locale files (grep the key across
src/frontend/src/locales/*.json). - [ ] No concatenation of translated fragments; interpolation used instead.
- [ ] Removed/renamed keys cleaned up in all locales (no orphans).
- [ ] Key follows the existing dot-namespace of the feature area.
Quick check for a key across locales:
for f in src/frontend/src/locales/*.json; do grep -L '"my.new.key"' "$f"; done
(prints the locale files where the key is missing — should print nothing)
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/frontend-i18n-mte1lkug/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/frontend-i18n-mte1lkug' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/frontend-i18n-mte1lkug/download' --output '.skill-downloads/frontend-i18n-mte1lkug/SKILL.md.part' && mv '.skill-downloads/frontend-i18n-mte1lkug/SKILL.md.part' '.skill-downloads/frontend-i18n-mte1lkug/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/frontend-i18n-mte1lkug/SKILL.md' && test -s '.skill-downloads/frontend-i18n-mte1lkug/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/frontend-i18n' && cp -R '.skill-downloads/frontend-i18n-mte1lkug' '.claude/skills/frontend-i18n'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/frontend-i18n-mte1lkug'openskills read 'frontend-i18n-mte1lkug'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/frontend-i18n-mte1lkug/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.