transloco-testing-flat-keys
CommunityReliable programmatic translations with Transloco
Authorfmflurry
Version1.0.0
Installs0
System Documentation
What problem does it solve?
When unit tests exercise code that calls this.transloco.translate(), programmatic lookups may return the raw key instead of the translated value. This Skill provides a solution by using flat, dot-delimited keys and a TranslocoTestingModule.forRoot configuration to produce correct translations in tests.
Core Features & Use Cases
- Flat-key translation mapping for programmatic access.
- Works with Transloco in Angular unit tests.
- Use case: verify translations in code paths that call translate() directly.
Quick Start
Configure TranslocoTestingModule.forRoot with flat, locale-scoped keys and a translocoConfig that enables the target language for consistent programmatic translations in tests.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: transloco-testing-flat-keys Download link: https://github.com/fmflurry/settings-opencode/archive/main.zip#transloco-testing-flat-keys Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.