Skip to content

Latest commit

 

History

History
153 lines (110 loc) · 4.21 KB

CHANGELOG.md

File metadata and controls

153 lines (110 loc) · 4.21 KB

2.1.7 (2018-07-21)

Dependency update

2.1.5 (2018-05-22)

Code Refactoring

  • L10nService: refactored rxjs implementations

Possible Breaking Changes

  • L10nService: methods setFromFile and setFromObject return Promise instead Observable, since here we don't track any sequence

Small Features

  • error handling: implemented new error handling service L10nErrorHandler
    @Injectable()
    export class L10nErrorHandler extends L10nBaseErrorHandler {
      public handleError(error: any): void {
          handle error
      }
    }
    
    @NgModule({
        imports: [
            ...,
            L10nModule.forRoot({ 
                errorHandler: L10nErrorHandler
            })
        ],
        bootstrap: []
    })
    export class AppModule {}
    

2.1.3 (2018-05-16)

Bug Fixes

  • L10nPipe: fixed problem that caused pipe "blink" when value has been changed (a26d235)

Small Features

  • L10nFormatter: interpolation algorithm optimized (1f90c04)

2.1.1 (2018-05-15)

Bug Fixes

  • L10nService: fixed memory leak when key is observed

2.1.0 (2018-05-13)

Small Features

  • interpolation: implemented formatter to provide greater control over output value
    @Injectable()
    export class CustomFormatter extends L10nBaseFormatter {
        public interpolate(sentence: string, args: IL10nArguments): string {
          return sentence.replace( defineInterpolation(['[[', ']]']), (match, interpolates) => {   
              if (!IsNullOrEmpty(args)) {
                  return args[this.trim(interpolates)];
              }
              return match;
          });
      }
    }
    
    
    @NgModule({
        imports: [
            BrowserModule,
            L10nModule.forRoot({ 
                formatter: CustomFormatter
            })
        ],
        bootstrap: []
    })
    export class AppModule {}
    

2.0.0 (2018-05-11)

Dependency updates

  • @localizaction/l10n now depends on
    • TypeScript 2.7
    • RxJS ^6.0.0
    • @angular/core ^6.0.0

1.2.0 (2018-05-21)

Dependency updates

  • @localizaction/l10n now depends on
    • ng-packagr ^2.4.4

Bug Fixes

  • interpolation: do not iterate over multipe cases, return first match
  • pipe: do not blink when value has been changed
  • L10nService: fixed memory leak when key is observed

Small Features

  • interpolation: dictionary sentence evaluation logic has moved from l10n to separate class (check version 2.1.0)
  • L10nFormatter: interpolation algorithm optimized

1.1.1 (2018-04-15)

Bug Fixes

  • rxjs: fixed issue with map as unknown function on observable object

1.1.0 (2018-03-30)

Small Features

  • L10nModule: added configuration for default property used by directive (7d7a038)
    @NgModule({
        imports: [
            BrowserModule,
            L10nModule.forRoot({ 
                config: { 
                    bindingProperty: 'textContent' 
                } 
            })
        ],
        bootstrap: []
    })
    export class AppModule {}
    

1.0.0 (2018-03-25)

Initial release