0

I'm developing an application with multiple domains: "Commercial", "Legal", etc. I'm using Angular/localize to translate my app. I have a service that send me a response based on this domain. My focus is to store this value in my ngrx store and use it like a prefix for my translation.

example

<div [i18n]="`@@${mydomain}.firm`">Firm</div>

and in my translation I need to create multiples keys:

commercial.firm : "Commercial Firm"
legal.firm : "Legal Firm"

How can solve this problem? i18n attribute can't permit me to pass variable as key.

Andy88
  • 647
  • 2
  • 9
  • 21

0 Answers0