I'm examining different ways to support translations in our hybrid angular 1 + angular 2 app. In our current code base using Angular 1.2 we load a JSON file with keys to translations that we inject using our own service/directive/filter. This approach requires from us to update the source JSON file manually.
I've tried using the internationalization method described in the angular 2 docs, but it raises a number of questions: 1. What resources are being parsed? All templates? 2. Can I add messages manually somehow? Can I add collect messages from JSON files or code? 3. How can I access the loaded messages through a service? I tried getting it using the TRANSLATIONS OpaqueToken but it didn't work. 4. If 2 or 3 are impossible, how else can I translate text that does not originate from a template? -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.