New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@localization/l10n

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@localization/l10n - npm Package Versions

2

2.1.7

Diff

Changelog

Source

2.1.7 (2018-07-21)

Dependency update

<a name="2.1.5"></a>

ipintar
published 2.1.6 •

ipintar
published 2.1.5 •

Changelog

Source

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 {}
    

<a name="2.1.3"></a>

ipintar
published 2.1.4 •

ipintar
published 1.2.0 •

Changelog

Source

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

<a name="1.1.1"></a>

ipintar
published 2.1.3 •

Changelog

Source

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)

<a name="2.1.1"></a>

ipintar
published 2.1.2 •

ipintar
published 2.1.1 •

Changelog

Source

2.1.1 (2018-05-15)

Bug Fixes

  • L10nService: fixed memory leak when key is observed

<a name="2.1.0"></a>

ipintar
published 2.1.0 •

Changelog

Source

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 {}
    

<a name="2.0.0"></a>

ipintar
published 2.0.1 •

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc