Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
Angular 12 - i18n with property of custom component

I am currently in the process of implementing i18n in an existing Angular 12 application. So far everything works fine and I receive the expected "messages.xlf" file.

However, I fail to receive entries for strings passed to custom components:

<customComponent i18n-[text]="someDescription someContext@@someID" [text]="'someText'">
</customComponent>

I found this question and tried several variants to the provided solutions (switching the order within the html tag, dropping the square brackets) but the marked text is not included as trans-unit. Is there an option to have this text included without creating a separate variable in the parent component like below?

$localize`:someDescription someContext@@someId:someText`;

Thanks in advance.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!