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

i18n-js

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-js - npm Package Compare versions

Comparing version 4.0.0-alpha.8 to 4.0.0-alpha.9

4

package.json
{
"name": "i18n-js",
"version": "4.0.0-alpha.8",
"version": "4.0.0-alpha.9",
"description": "A small library to provide I18n on JavaScript.",

@@ -26,3 +26,3 @@ "main": "./dist/import/index.js",

"build:import": "tsc --outDir ./dist/import --module ESNext",
"build": "yarn clean && yarn build:import && yarn build:browser && yarn build:require && yarn docs",
"build": "yarn clean && yarn build:import && yarn build:browser && yarn build:require",
"lint:typescript": "tsc --noEmit",

@@ -29,0 +29,0 @@ "lint:eslint": "eslint --config .eslintrc.js --max-warnings 0 'src/**/*'",

@@ -1,2 +0,2 @@

import { DateTime, Dict, I18nOptions, MissingPlaceholderHandler, NullPlaceholderHandler, OnChangeHandler, Scope, TimeAgoInWordsOptions, NumberToCurrencyOptions, NumberToRoundedOptions, NumberToPercentageOptions, NumberToDelimitedOptions, NumberToHumanOptions, NumberToHumanSizeOptions, ToSentenceOptions, TranslateOptions } from "../index.d";
import { DateTime, Dict, I18nOptions, MissingPlaceholderHandler, NullPlaceholderHandler, Numeric, OnChangeHandler, Scope, TimeAgoInWordsOptions, NumberToCurrencyOptions, NumberToRoundedOptions, NumberToPercentageOptions, NumberToDelimitedOptions, NumberToHumanOptions, NumberToHumanSizeOptions, ToSentenceOptions, TranslateOptions } from "../index.d";
import { Locales } from "./Locales";

@@ -28,3 +28,3 @@ import { Pluralization } from "./Pluralization";

set defaultLocale(newLocale: string);
numberToCurrency(amount: string | number, options?: NumberToCurrencyOptions): string;
numberToCurrency(amount: Numeric, options?: NumberToCurrencyOptions): string;
translate(scope: Scope, options?: TranslateOptions): string;

@@ -37,10 +37,10 @@ t: (scope: Scope, options?: TranslateOptions | undefined) => string;

toTime(scope: Scope, input: DateTime): string;
numberToPercentage(input: number | string, options?: NumberToPercentageOptions): string;
numberToHumanSize(numeric: number, options?: NumberToHumanSizeOptions): string;
numberToHuman(input: number | string, options?: NumberToHumanOptions): string;
numberToRounded(input: number | string, options?: NumberToRoundedOptions): string;
numberToDelimited(input: number | string, options?: Partial<NumberToDelimitedOptions>): string;
numberToPercentage(input: Numeric, options?: NumberToPercentageOptions): string;
numberToHumanSize(numeric: Numeric, options?: NumberToHumanSizeOptions): string;
numberToHuman(input: Numeric, options?: NumberToHumanOptions): string;
numberToRounded(input: Numeric, options?: NumberToRoundedOptions): string;
numberToDelimited(input: Numeric, options?: Partial<NumberToDelimitedOptions>): string;
withLocale(locale: string, callback: () => void): Promise<void>;
strftime(date: Date, format: string): string;
update(path: string, override: unknown, options?: {
update(path: string, override: any, options?: {
strict: boolean;

@@ -47,0 +47,0 @@ }): void;

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