
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
1. 运行时多语组件,组件通过对资源文件的加载达到支持不同语言; 2. 提供tinper-bee的多语组件 > [提供cli 工具实现 pack.json 和 excel 的相互转换。](https://package.yonyoucloud.com/#/package/bGFuZy1jbGk=)
安装
ynpm install @yonyou/ac-lang-cn --save
引入
import lang ,{ Local } from "ac-lang-cn";
使用
const pack = require('components/lang/pack').default;
lang.init(pack, null);
console.log(" ************************多语加载成功!***************************");
...
render(){
let _title = `${lang.template("YS_FI_FP_0000033576")}`/* 我是变量的多余! */;
return(<div>{_title}</div>)
}
引入
import lang ,{ Local } from "ac-lang-cn";
render(<Local> //入口路由处加入
<Router>
</Local>, document.getElementById('#app'));
| API | 说明 | 类型 | 默认值/参数 |
|---|---|---|---|
| lang | 语言 | string | |
| langType | 语言类型 | string | |
| defaultLangType | 默认类型 | string | |
| languages | 所有语言类型 | string[] | |
| init | 初始化化入口 | function | |
| getLanguageType | 获取语言。优先级:URL配置 > 系统语言 > 默认语言 | function | |
| getLanguage | 获取语言 | function | |
| getG_Language | 浏览器语言 | function | |
| getCookie | 获取cookie | function | |
| setLanguage | 设置语言 | function | |
| setPack | 设置语言包 | function | |
| setChangeLanguage | 语言变化时重新设置语言 | function | |
| template | 渲染模版内容 | function | |
| jsonp | JSONP获取网络多语资源 | function |
FAQs
1. 运行时多语组件,组件通过对资源文件的加载达到支持不同语言; 2. 提供tinper-bee的多语组件 > [提供cli 工具实现 pack.json 和 excel 的相互转换。](https://package.yonyoucloud.com/#/package/bGFuZy1jbGk=)
We found that ac-lang-cn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.