You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[i18n] support i18n-localiza in template expression. #48229
changed the title [-][i18n] support i18n pipe line in template expression.[/-][+][i18n] support i18n-localiza in template expression.[/+]on Nov 25, 2022
I have implemented this proposal initially, I know it is not an easy work, but it can be implemented quickly with a simple hack, now I will use it for my project, here is my commit:Gaubee@81f89bd
I have implemented this proposal initially, I know it is not an easy work, but it can be implemented quickly with a simple hack, now I will use it for my project, here is my commit:Gaubee@81f89bd
I have implemented this proposal initially, I know it is not an easy work, but it can be implemented quickly with a simple hack, now I will use it for my project, here is my commit:Gaubee@81f89bd
If some one when to try this. inject codes to node_modules/@angular/compiler/fesm2015/compiler.mjs :
ps: you can use pnpm patch @angular/compiler or patch-package
search error('Text nodes should be interpolated and never bound directly.');, and you can found it in visitBoundText method.
Activity
[-][i18n] support i18n pipe line in template expression.[/-][+][i18n] support i18n-localiza in template expression.[/+]Gaubee commentedon Nov 26, 2022
I have implemented this proposal initially, I know it is not an easy work, but it can be implemented quickly with a simple hack, now I will use it for my project, here is my commit:Gaubee@81f89bd
the compile will be like:
Gaubee commentedon Nov 26, 2022
Here is my Angular project code:
just like
import {loadTranslations} from '@angular/localize';Gaubee commentedon Nov 26, 2022
ng extract-i18nworks too. because it follows the principle of extraction: https://github.com/angular/angular/blob/main/packages/localize/tools/src/extract/extraction.ts#L49Gaubee commentedon Nov 26, 2022
If some one when to try this. inject codes to
node_modules/@angular/compiler/fesm2015/compiler.mjs:search
error('Text nodes should be interpolated and never bound directly.');, and you can found it invisitBoundTextmethod.then insert this code at the end of the function
look like:
