@kunlun-dx/i18n
Advanced tools
Comparing version 0.7.2 to 0.7.4
@@ -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; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10708
119
1