
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@fouro/i18n
Advanced tools
本工具包业务需求和使用场景较为单一,不具备通用性,不推荐下载。 具体业务流程及使用详情请前往[wiki->传送门](http://10.20.70.27:8090/pages/viewpage.action?pageId=11927763)
本工具包业务需求和使用场景较为单一,不具备通用性,不推荐下载。 具体业务流程及使用详情请前往wiki->传送门
npm install @fouro/i18n --save-dev "initTemplate": "node node_modules/@fouro/i18n/src/init-template.js",
"sendMail": "node node_modules/@fouro/i18n/src/email.js",
"template": "node node_modules/@fouro/i18n/src/template.js",
"generate": "node node_modules/@fouro/i18n/src/generator.js",
该脚本在国际化流程建立初期使用。由开发人员直接在项目国际化源码中添加所需要的字段 key & value。此时产品的字库中并没有及时补充开发人员新添加的字段,这个脚本第一个功能就是检测产品字库中缺失的字段,并产出一个 missing_keys.properties 文件进行记录;第二个功能是将国际化源码中的 key 找出在字库中对应的字段 id,并保存在 projectName.template.properties 文件中,这个文件又被称为模板文件。 该脚本需要在 config 中指明: 注意:本步骤与模板处理相关,建议目录都设置在 'constant/i18nTemplate/' 下
该脚本实现的是将【保存字库缺失的字段】的文件,以邮件附件的形式发送给字库维护人员。该脚本的使用比较简单,需要配置的项目也较少。
该脚本应该在国际化流程标准化以后执行。首先,产品在原型中标注完整的文案和对应的字段 ID。我们在开发过程中,如在国际化源文件中新增 key, 对应的 value 要使用双花括号包裹的 id,例如 testKey: '{{S00010}}'。尤其需要注意的是,此时字库维护人员将不再字库表中添加我们的 key, 所以我们就只能依赖双花括号中的值去补充国际化模板。然后根据模板和项目源文件 key 再生成所需要的目标源文件。所以这个时候新增的 key 对应的值不要直接写文案 value,否则将无法添加至模板中并形成与字库的对应关系。
该脚本是根据项目源文件的key, 模板的 key id 对应关系,字库中的 id value 对应关系,重新生成源文件的过程,目的是将字库中的 value 更新到源文件中,并为每种语言生成一个静态的 json 文件。
FAQs
本工具包业务需求和使用场景较为单一,不具备通用性,不推荐下载。 具体业务流程及使用详情请前往[wiki->传送门](http://10.20.70.27:8090/pages/viewpage.action?pageId=11927763)
We found that @fouro/i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.