Angular Translation Library (CLI)
Specificaions
This is a first try to implement a replacement tool for the NGX Translate library that is now split into to many components, and has now enough shortcomings.
RegEx
These are the the regular expressions used to extract string keys for translation:
- From HTML: /'([A-Z0-9_]+)'\s*|\s*(translate\s*(.*)|translate)/g
- From TypeScript: /translate\s*(\s*'"['"]\s*(\s*.*))/g