frontend-i18n
Skill8 starsChanged 3 months agoMITView on GitHub
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.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- LaoitdevOpen/laoitdev-skillstheir own version, first seen Oct 20, 2026
- rommapp/rommtheir own version, first seen Oct 8, 2026
- langflow-ai/langflowword for word, first seen Oct 8, 2026
Other versions3 projects use a version of this.
Word for word · 1
- langflow-ai/langflow★ 156k100% same
Edited · 0
None found.
Wrote their own version · 2
- rommapp/romm★ 14ksame name
- LaoitdevOpen/laoitdev-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/docs_development.mdcCursor rule
- backend-code-reviewSkill
- component-refactoringSkill
- e2e-testingSkill
- frontend-code-reviewSkill
- frontend-query-mutationSkill
- frontend-testingSkill
- ibm-a11y-level1-auditSkill
- ibm-a11y-pr-remediationSkill
- ibm-a11y-route-scanSkill
- ibm-a11y-testing-guideSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
Plurals: use i18next plural forms (_one / _other suffixes), not count === 1 ?
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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)
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
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.

