nylo-localization

A set of instructions for adding and maintaining multiple languages in a Nylo version 7 Flutter application. Nylo is a framework for building Flutter apps.

In plain words
What is it for?
It helps create translation files, configure supported and default languages, translate displayed text, switch languages, and support right-to-left languages such as Arabic and Hebrew.
Why use it?
It provides the project locations and conventions for translations, helping prevent missing text or incorrect language switching.

Skill for Claude CodeCodex

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 skills/nylo-core/claude-code/nylo-localization
Any agent
npx skills add nylo-core/claude-code --skill nylo-localization
Clone the repo
git clone --depth 1 https://github.com/nylo-core/claude-code

Made for: Claude Code, Codex.

Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,914 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.00062 $0.02914
Opus 5 $0.00031 $0.01457
Sonnet 5 $0.00012 $0.00583
Haiku 4.5 $0.00006 $0.00291

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

Security

Grade A, and why

nylo-localization 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 2d 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.

skills/nylo-localization/SKILL.md · 397 lines

How it starts

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

Nylo Localization

Overview

Nylo v7 provides a JSON-based localization system configured in lib/config/localization.dart. Translation files live in the lang/ directory, and strings are accessed throughout the app using the .tr() extension or the TextTr convenience widget.

When to Use

  • Adding multi-language (i18n) support to a Nylo project
  • Creating or editing JSON translation files
  • Displaying translated text with Text.tr, TextTr, or .tr()
  • Passing dynamic arguments into translated strings
  • Switching languages at runtime (programmatically or via LanguageSwitcher widget)
  • Configuring supported locales, default locale, or fallback locale
  • Handling right-to-left (RTL) languages like Arabic or Hebrew
  • Debugging missing translation keys
  • When NOT to use: For theming or styling text appearance unrelated to language, use nylo-themes instead

Quick Reference

Action Code / Location
Translation files directory lang/en.json, lang/es.json, etc.
Localization config lib/config/localization.dart
Set default locale DEFAULT_LOCALE=en in .env
Use device locale LOCALE_TYPE=device in .env
Debug missing keys DEBUG_TRANSLATIONS=true in .env
Translate a string "welcome".tr()
Translate with args "greeting".tr(arguments: {"name": "John"})
Translate nested key "navigation.home".tr()
TextTr widget TextTr("welcome")
TextTr with args TextTr("greeting", arguments: {"name": "John"})
Switch language (NyPage) changeLanguage('es')
Switch language (anywhere) await NyLocalization.instance.setLanguage(context, language: 'es')
Check if RTL LocalizationConfig.isRtl(languageCode)
Verify key exists NyLocalization.instance.hasTranslation("key")
Get all loaded keys NyLocalization.instance.getAllKeys()
Rebuild env after changes metro make:env --force

Project Setup

1. Create Language Files

Add JSON files to the lang/ directory at the project root. Each file is named by its locale code:

Read the full file on GitHub · 397 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. 2d ago First seen · 397 lines · 62 tokens per session scan A 60f5e8036aa0

Subscribe to this mod's changes

nylo-localization is a skill published in the GitHub repository nylo-core/claude-code (4 stars, last pushed 4mo ago), licensed MIT. It adds 62 tokens to every session and 2,914 once invoked, about $0.0003 per session on Opus 5. 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-31.

Related

Other skills, from other repositories

inclusive-design

Use when working on inclusion, i18n/localization, global name/address forms, low-end devices, slow/metered networks, affordability, or first-time/low-confidence users; not WCAG/screen readers (see accessibility).

evanca/flutter-ai-rules · 50 tokens

flutter-internationalization

Add, fix, audit, and maintain Flutter internationalization with gen-l10n, ARB files, AppLocalizations, flutterlocalizations, intl formatting, plural/select messages, RTL support, locale-specific number/date formatting, and localization build errors. Use when asked to add l10n or i18n, translate Flutter UI text…

MADTeacher/mad-agents-skills · 98 tokens

fl-localization

Adds and updates app strings through the CSV → ARB → generated localizations workflow.

phanbaohuy96/flutter_base_structure · 20 tokens

at_client_skills-sdk

Use this skill when a developer is building a Dart or Flutter app that depends on atclient or atclientflutter from pub.dev, stores or shares data via the Atsign Protocol, needs onboarding (CRAM new-atsign, atKeys file, keychain, APKAM) or APKAM enrollment, or asks about AtCollection , CItem , Query , sub-collections…

atsign-foundation/at_client_sdk · 232 tokens

flutter-pre-caching

Use when preloading fonts, asset/network images, Lottie/Rive animations, local JSON/config, warming initial API data, or optimizing Flutter Web startup.

evanca/flutter-ai-rules · 36 tokens

firebase-messaging

Use when setting up Firebase Cloud Messaging, managing permissions and tokens, handling background/foreground notification taps, or dispatching messages server-side (HTTP v1).

evanca/flutter-ai-rules · 35 tokens