alfredoperez avatar

Angular Best Practices Transloco

If you're using Transloco for Angular internationalization, this skill keeps you on the happy path with three focused patterns: lazy loading translation files per route so you're not shipping every language upfront, mocking translations in tests with TranslocoTestingModule to avoid flaky HTTP calls, and generally leveraging runtime language switching instead of build-time compilation. It's a companion to the main angular-best-practices skill from the same author, so install both for full coverage. The rules are straightforward and target real pain points like bundle size and test reliability rather than trying to teach you Transloco from scratch.

skills.sh installs
342
GitHub stars
36
last updated
Jun 3, 2026

Install

$ npx -y skills add alfredoperez/angular-best-practices --skill angular-best-practices-transloco --agent claude-code

Installs into .claude/skills of the current project.

Files

Angular 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 transloco pipe or directive
  • Lazy-loading translation files per route with scopes
  • Writing tests that use TranslocoTestingModule

Rules

RuleImpactDescription
Lazy Load Translation Files per RouteMEDIUMLoad scoped translations only when a route is activated
Mock Translations in TestsMEDIUMFast deterministic tests without HTTP translation loading
Use Transloco for Runtime i18nMEDIUMDynamic language switching without app rebuilds

Install

Sponsors

Details

Repository
github.com/alfredoperez/angular-best-practices
Category
Frontend Development
First seen
Jun 3, 2026

More from alfredoperez/angular-best-practices

All 10
1arraydude avatarreact-query-best-practicesarraydude/agent-skillsReact Query v4 (TanStack Query) best practices, patterns, and troubleshooting. Use when working with useQuery, useMutation, query invalidation, caching, WebSock339skills.sh installs
2secondsky avatarnuxt-seosecondsky/claude-skillsNuxt SEO v5 modules (robots, sitemap, og-image, schema-org, link-checker, seo-utils, site-config). Use when implementing SEO, robots.txt, sitemaps, Schema.org, 335skills.sh installs
3alfredoperez avatarangular-best-practices-rules-revieweralfredoperez/angular-best-practicesangular best practices rules reviewer331skills.sh installs
4nocobase avatarnocobase-ui-buildernocobase/skillsINTERNAL CONTINUATION ONLY. Never select this skill from a raw user UI request. Use it only after nocobase-portal-manage has already resolved exactly one enable331skills.sh installs
5ihlamury avataranthropic-ui-skillsihlamury/design-skillsAnthropic's UI design system. Use when building interfaces inspired by Anthropic's aesthetic - light mode, Inter font, 4px grid.328skills.sh installs
6existential-birds avatarreact-flow-code-reviewexistential-birds/beagleReviews React Flow code for anti-patterns, performance issues, and best practices. Use when reviewing code that uses @xyflow/react, checking for common mistakes324skills.sh installs