intlayer-angular
Installation
SKILL.md
Intlayer Angular Usage
Core Philosophy
Intlayer promotes Component-Level Content Declaration. Instead of a massive global translation file, content is declared in *.content.ts files adjacent to the Angular components that use them.
Workflow
To create a translated component, you need two files:
- Declaration: A content file (e.g.,
my-component.content.ts) defining the dictionary. - Implementation: An Angular component (e.g.,
my-component.component.ts) using theuseIntlayersignal.
1. Declare Content
Create a content file using t() for translations.
File: src/app/my-component/my-component.content.ts