Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-i18next

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-i18next - npm Package Compare versions

Comparing version 17.0.0-0 to 17.0.0-1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# [17.0.0-1](https://github.com/Romanchuk/angular-i18next/compare/v17.0.0-0...v17.0.0-1) (2023-11-28)
# [17.0.0-0](https://github.com/Romanchuk/angular-i18next/compare/v16.0.0...v17.0.0-0) (2023-11-27)

@@ -2,0 +6,0 @@

14

lib/I18NextService.d.ts

@@ -5,3 +5,3 @@ import * as i18n from 'i18next';

import { ITranslationEvents } from './ITranslationEvents';
import { ITranslationService } from './ITranslationService';
import { ITranslationOptions, ITranslationService } from './ITranslationService';
import * as i0 from "@angular/core";

@@ -21,12 +21,4 @@ export declare class I18NextService implements ITranslationService {

constructor(errorHandlingStrategy: I18NextErrorHandlingStrategy, i18nextInstance?: i18n.i18n);
t(key: string | string[], options?: (i18n.TOptions & {
defaultValue?: string | undefined;
}) | undefined): i18n.DefaultTReturn<(i18n.TOptions & {
defaultValue?: string | undefined;
})>;
t(key: string | string[] | (string | TemplateStringsArray)[], defaultValue: string, options?: (i18n.TOptions & {
defaultValue: string;
}) | undefined): i18n.DefaultTReturn<(i18n.TOptions & {
defaultValue: string;
})>;
t(key: string | string[], options?: ITranslationOptions | undefined): i18n.DefaultTReturn<ITranslationOptions>;
t(key: string | string[] | (string | TemplateStringsArray)[], defaultValue: string, options?: ITranslationOptions | undefined): i18n.DefaultTReturn<ITranslationOptions>;
use<T extends i18n.Module>(module: T | i18n.NewableModule<T> | i18n.Newable<T>): ITranslationService;

@@ -33,0 +25,0 @@ init(options: i18n.InitOptions): Promise<I18NextLoadResult>;

import * as i18n from 'i18next';
import { I18NextLoadResult } from './I18NextLoadResult';
import { ITranslationEvents } from './ITranslationEvents';
import { $Dictionary as I18Next$Dictionary } from 'i18next/typescript/helpers';
type Modify<T, R> = Omit<T, keyof R> & R;
export type ITranslationOptions = i18n.TOptions & I18Next$Dictionary & {
defaultValue?: string;
};
export type ITranslationService = Modify<Partial<i18n.i18n>, {

@@ -16,12 +20,4 @@ events: ITranslationEvents;

init(options: i18n.InitOptions): Promise<I18NextLoadResult>;
t(key: string | string[], options?: i18n.TOptions & {
defaultValue?: string;
}): i18n.DefaultTReturn<(i18n.TOptions & {
defaultValue: string;
})>;
t(key: string | string[], defaultValue: string, options?: i18n.TOptions & {
defaultValue: string;
}): i18n.DefaultTReturn<(i18n.TOptions & {
defaultValue: string;
})>;
t(key: string | string[], options?: ITranslationOptions): i18n.DefaultTReturn<ITranslationOptions>;
t(key: string | string[], defaultValue: string, options?: ITranslationOptions): i18n.DefaultTReturn<ITranslationOptions>;
format: i18n.FormatFunction;

@@ -28,0 +24,0 @@ exists: i18n.ExistsFunction;

import * as i18n from 'i18next';
import { $Dictionary as I18Next$Dictionary } from 'i18next/typescript/helpers';
export type FormatPipeOptions = {

@@ -12,4 +13,4 @@ format?: string;

};
export type PipeOptions = i18n.TOptions & {
export type PipeOptions = i18n.TOptionsBase & I18Next$Dictionary & {
defaultValue?: string;
} & FormatPipeOptions & PrependPipeOptions;
{
"name": "angular-i18next",
"version": "17.0.0-0",
"version": "17.0.0-1",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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