File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
projects/ngneat/transloco/src/lib Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,15 @@ title: Blog Posts
11
11
<div className = " blog-image" style = { {backgroundImage: " url('https://miro.medium.com/max/1200/1*X1LKTIx6awH2C2xB7G7Nvg.png')" }} ></div >
12
12
</a >
13
13
14
+ <a className = " blog-post" href = " https://medium.com/@shahar.kazaz/transloco-proudly-presents-functional-translations-e73fca275c33" rel = " noopener noreferrer" target = " _blank" spellCheck = " false" >
15
+ <div className = " blog-preview" >
16
+ <div className = " blog-title" >Transloco Proudly Presents: Functional Translations</div >
17
+ <div className = " blog-description" >A friend told me of an exciting use-case, where he needed to change translation values depending on whether the user was allowed access to a feature or not.…</div >
18
+ <div className = " blog-source" >medium.com</div >
19
+ </div >
20
+ <div className = " blog-image" style = { {backgroundImage: " url('https://miro.medium.com/max/1200/1*oJcxt06UXLSNyvbqNe18tA.png')" }} ></div >
21
+ </a >
22
+
14
23
<a className = " blog-post" href = " https://medium.com/@ItayOded/lazy-load-and-encapsulate-i18n-files-in-angular-with-transloco-55af44885797" rel = " noopener noreferrer" target = " _blank" spellCheck = " false" >
15
24
<div className = " blog-preview" >
16
25
<div className = " blog-title" >Lazy Load and Encapsulate i18n Files in Angular with Transloco</div >
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export class FunctionalTranspiler extends DefaultTranspiler implements Transloco
100
100
transpile ( value : any , params : HashMap = { } , translation : Translation ) : any {
101
101
if ( isString ( value ) ) {
102
102
const transpiled = value . replace (
103
- / \[ \[ \s * (?< functionName > \w + ) \( (?< args > .* ) \) \s * ] ] / g,
103
+ / \[ \[ \s * ( \w + ) \( ( .* ) \) \s * ] ] / g,
104
104
( match : string , functionName : string , args : string ) => {
105
105
try {
106
106
const func : TranslocoTranspilerFunction = this . injector . get ( functionName ) ;
You can’t perform that action at this time.
0 commit comments