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

@kotori-bot/i18n

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kotori-bot/i18n - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

6

dist/common.d.ts

@@ -21,5 +21,5 @@ import LocaleIdentifier from './types/locale';

extends(lang?: T): I18n<T>;
date(date: Date | number, style?: Intl.DateTimeFormatOptions['dateStyle'], lang?: T): string;
time(time: Date | number, style?: Intl.DateTimeFormatOptions['timeStyle'], lang?: T): string;
period(time: Date | number, style?: Intl.DateTimeFormatOptions['dayPeriod'], lang?: T): string;
date(date?: Date | number, style?: Intl.DateTimeFormatOptions['dateStyle'], lang?: T): string;
time(time?: Date | number, style?: Intl.DateTimeFormatOptions['timeStyle'], lang?: T): string;
period(time?: Date | number, style?: Intl.DateTimeFormatOptions['dayPeriod'], lang?: T): string;
number(number: number, options?: Intl.NumberFormatOptions, lang?: T): string;

@@ -26,0 +26,0 @@ list(list: Iterable<string>, options?: Intl.ListFormatOptions, lang?: T): string;

@@ -54,9 +54,9 @@ "use strict";

}
date(date, style, lang = this.lang) {
date(date = new Date(), style = undefined, lang = this.lang) {
return new Intl.DateTimeFormat(locale_1.default[lang], { timeStyle: style }).format(date);
}
time(time, style, lang = this.lang) {
time(time = new Date(), style = undefined, lang = this.lang) {
return new Intl.DateTimeFormat(locale_1.default[lang], { timeStyle: style }).format(time);
}
period(time, style, lang = this.lang) {
period(time = new Date(), style = undefined, lang = this.lang) {
return new Intl.DateTimeFormat(locale_1.default[lang], { dayPeriod: style }).format(time);

@@ -63,0 +63,0 @@ }

{
"name": "@kotori-bot/i18n",
"version": "v1.2.0",
"version": "1.2.1",
"description": "i18n For Kotori",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

# @kotori-bot/i18n
这是一个轻量级的国际化(i18n)工具库,可以方便地实现JavaScript/TypeScript项目的本地化支持。
这是一个轻量级的国际化(i18n)工具库,可以方便地实现 JavaScript/TypeScript 项目的本地化支持。

@@ -5,0 +5,0 @@ ## 🎯 What

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