If you need other routing in one language, as you describe in your comment, you may have a dedicated routing module for each individual language. Then define in angular-cli.json for each language a dedicated application with its own main.ts and its own AppModule, pulling only the routing module needed for a particular language.
"apps": [ { "root": "src", "name": "yourapp_FR", ... "main": "./app/yourapp_FR/main.ts", ... }, { "root": "src", "name": "yourapp_DE", ... "main": "./app/yourapp_DE/main.ts", ... } ]
Then you create an application for each language as follows:
ng build --app yourapp_FR --i18n-file src/i18n/messages.fr.xlf --locale fr --i18n-format xlf --aot
This way you install it once and can create it every time without commenting on anything. I do not have a full context. You say that routes for each language are better for SEO. I donโt understand this, but if you say so, good. However, I would not want dedicated routing for each language. This means a lot of redundancy and extra maintenance.
source share