A
angular-best-practices-transloco
About angular-best-practices-transloco
angular-best-practices-transloco is an add-on skill for Angular runtime internationalization with Transloco. It provides guidance on route-level lazy loading, dynamic language switching, and deterministic translation tests.
Key features
- 01Route-scoped lazy translation loading
- 02Runtime language switching
- 03TranslocoTestingModule test guidance
Use cases
- 01Adding Transloco runtime i18n
- 02Loading translations by route
- 03Testing Angular components with mock translations
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ alfredoperez/ angular-best-practices --skill angular-best-practices-translocoAfter installing, type/angular-best-practices-translocoin Claude Code to confirm it loaded.
Bundled filesAGENTS.md
Details
From the project READMEAngular Transloco Best Practices
Transloco rules for runtime internationalization, lazy-loaded translations, and testing. Use with the core angular-best-practices skill for comprehensive Angular coverage.
Links
When to Apply
- Adding runtime i18n with the
translocopipe or directive - Lazy-loading translation files per route with scopes
- Writing tests that use
TranslocoTestingModule
Rules
| Rule | Impact | Description |
|---|---|---|
| Lazy Load Translation Files per Route | MEDIUM | Load scoped translations only when a route is activated |
| Mock Translations in Tests | MEDIUM | Fast deterministic tests without HTTP translation loading |
| Use Transloco for Runtime i18n | MEDIUM | Dynamic language switching without app rebuilds |
Install
Install from skills.sh/alfredoperez/angular-best-practices:
- Core skill: angular-best-practices
- This add-on: angular-best-practices-transloco
Comments
Markdown supported