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

@kunlun-dx/i18n

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kunlun-dx/i18n - npm Package Compare versions

Comparing version 0.7.2 to 0.7.4

25

lib/index.d.ts

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

import { StandLocal } from '@kunlun/intl-core';
export declare type ResourceKey = string | {
[key: string]: any;
};
export interface ResourceLanguage {
[namespace: string]: ResourceKey;
}
export interface Resource {
[language: string]: ResourceLanguage;
}
export declare enum LangProps {
en_US = "en_US",
zh_CN = "zh_CN"
}
export interface IntlOptions {
lng?: LangProps;
resources: Resource;
timeOffset?: string;
fallbackLanguagesCode?: number[];
ns?: string;
}
export interface StandLocal {
language_code: number;
text: string;
}
export interface I18n {

@@ -3,0 +26,0 @@ translate(key: string, params?: Record<string, any>): string;

5

package.json
{
"name": "@kunlun-dx/i18n",
"description": "Kunlun Developer Experience Internationalization Service",
"version": "0.7.2",
"version": "0.7.4",
"author": "fanweiren <fanweiren@bytedance.com>",

@@ -9,3 +9,4 @@ "maintainers": [

"fanweiren <fanweiren@bytedance.com>",
"lijifei <lijifei@bytedance.com>"
"lijifei <lijifei@bytedance.com>",
"pengke <pengke@bytedance.com>"
],

@@ -12,0 +13,0 @@ "main": "lib/index.js",

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