![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
fes-locale-script
Advanced tools
## 功能 1. 读取指定目录下的所有.vue文件,自动替换template与script中的语言标签为变量引用形式。以中文作为key,提高代码可读性。 例: ``` <!-- 转换前: --> 组织架构管理
<!-- 转换前: -->
<h1 label="排序">组织架构管理</h1>
<!-- 转换后: -->
<h1 :label="$t('_.排序')">{{ $t('_.组织架构管理') }}</h1>
wnpm i -g fes-locale-gen
fes-locale-gen -d <目录> -e <排除文件>
脚本将完成80%的重复性文本替换工作,剩余部分需要人工处理并同时做好替换后的核对。
注意以下是脚本执行后需要手动完成的部分:
/pages/**.vue
import { useI18n } from '@fesjs/fes';
const { t: $t } = useI18n();
/locales/en-US.js
/**
* 1. 引入自动生成的翻译配置
* (将生成的翻译配置放在其他目录的原因,locales目录会影响导航栏中语言切换选项的展示)
* */
import enUSCommon from './locales-generated/en-US-common';
export default {
/** 2. 使用下划线作为自动生成的命名空间 */
_: enUSCommon,
/** 3. 手动添加或主动覆盖的翻译配置 */
首页: 'Front Page',
产品管理: 'Product Management',
天: 'Day',
周: 'Week',
月: 'Month',
};
手动配置页面标题与菜单的翻译
脚本执行前做好git版本管理,脚本执行后做好生成结果检查
<p>{{ row.compare === 1 ? '是' : '否' }}</p>
FAQs
## 功能 1. 读取指定目录下的所有.vue文件,自动替换template与script中的语言标签为变量引用形式。以中文作为key,提高代码可读性。 例: ``` <!-- 转换前: --> 组织架构管理
The npm package fes-locale-script receives a total of 1 weekly downloads. As such, fes-locale-script popularity was classified as not popular.
We found that fes-locale-script demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.