All the paths configuration (input
, output
, and translationsPath
) will now be prefixed with the sourceRoot
value.
The sourceRoot
value is determined by the following logic:
angular.json
file is missing:- Will default to
src
.
- Will default to
angular.json
file is present:- Will default to the
defaultProject
'ssourceRoot
value. - If
--project
option is provided, will extract the project'ssourceRoot
value.
- Will default to the
Comments in the templates will now inherit the read
input value (if exists), and will be prefixed with it:
<!-- t(this.is.cool) -->
<ng-container *transloco="let m; read: 'messages'">
...
<!-- t(success, error) -->
<ng-container *transloco="let g; read: 'general'">
...
<!-- t(ok, cancel) -->
</ng-container>
</ng-container>
The extracted keys for the code above will be:
{
"this.is.cool": "",
"messages.success": "",
"messages.error": "",
"general.ok": "",
"general.cancel": ""
}