I18n module registry pattern
Skill kjuhwa/skills-hub/skills/i18n/i18n-module-registry-pattern
Compile-time language module registration with lazy_static registry — no runtime file IO.From its SKILL.md
npx -y skills add kjuhwa/skills-hub --skill i18n-module-registry-patternAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.1 KB, 152 tokens by cl100k_base, as published. Nobody here has run it
I18n Module Registry Pattern
When to use
Compile-time language module registration with lazy_static registry — no runtime file IO.
Source context
- Repo:
rustdesk/rustdesk@ac124c0680 - Demonstrated in:
src/lang.rs
Why this generalizes
Reusable for embedded/offline apps where JSON catalogs are too heavy.
Next steps before publishing
- Read the source files above and rewrite this as a product-agnostic
how-to— keep the pattern, drop rustdesk-specific names. - Add a minimal code example in the target language (Rust + Dart / Rust only / etc.).
- List 2-3 gotchas you hit while reproducing it.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.