1)安装du-i18n插件,输入du i18n即可搜索 image 2)配置 安装好之后,点击设置,自动生成配置文件du-i18n.config.json image 5. 使用 1)回显文案 image 2)扫描中文 image image image 在/src/i18n/temp/自动生成随机文件,路径和文件名都可以自主配置,生成随机文件名主要是解决代码冲突问题 ...
4. 安装与配置:1)安装du-i18n插件,输入du i18n即可搜索;2)安装后,点击设置,自动生成配置文件du-i18n.config.json。5. 使用:1)回显文案;2)扫描中文;3)线上翻译(接入deyi、创建本地翻译源文案、调用百度在线翻译API);4)翻译漏检;5)批量操作;6)语言切换。6. 常见问题:1)react...
每一个LuCI2子页面必须有一个存放在/www/luci2/template/目录下的模板。它们提供了非常简单的内容替换区的HTML文件。需要注意的是它们不包含任何变量的引用,这是JavaScript的功劳:用JavaScript去读取并写入内容。在为本地化系统(i18n)这些文件中唯一特定的语法类似下面的标记: ...
在VSCode中搜索并安装dui18n插件。安装后,点击设置,插件将自动生成配置文件dui18n.config.json。使用方法:回显文案:查看已翻译的文案。扫描中文:自动识别并提取代码中的中文文本。线上翻译:接入deyi、创建本地翻译源文案或调用百度在线翻译API进行翻译。翻译漏检:检查是否有遗漏未翻译的文案。批量操作:...
return defineConfig({ define: { __APP_VERSION__: JSON.stringify(VITE_VERSION) }, base: VITE_BASE_URL, server: { port: parseInt(VITE_PORT), proxy: { '/api': { target: VITE_API_URL, changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, '') } },...
"build:i18n": "pnpm --filter @apitable/i18n-lang run build", "start:prod:room-server": "pnpm --filter @apitable/room-server run start:prod", "pm2:nest": "pm2-runtime start packages/room-server/ecosystem.config.js", "test": "nx run-many -t test --exclude @apitable/cypress...
These are very simpleHTMLfiles providing place for a content. Please note they don't contain references to any variables, it's JavaScript role to access them and fill with a content. The only special syntax in these files is for internationalization (i18n) system that uses following special ...
richBrain commented on Dec 9, 2024 richBrain on Dec 9, 2024 Author 页面内容哪里会有影响呢 感觉应该是个特例。看你红色字体的描述有点像与其他插件的冲突,是单个文件不行,其他文件可以扫描中文,是吧? 这个文件名的后缀名是什么,文件所在的目录和du-i18n.config.json配置文件的目录机构关系是怎样的? 恩...
CONFIG_PACKAGE_luci-i18n-mtwifi-cfg-zh-cn=y CONFIG_PACKAGE_mtwifi-cfg=y CONFIG_PACKAGE_lua-cjson=y 5. Not build luci-app-dockerman 该选项默认关闭,即按.mtwifi-cfg.config配置文件编译dockerman,不需要编译dockerman请打钩。 .mtwifi-cfg.config配置文件中已设置编译dockerman: CONFIG_PACKAGE_luci...
1)安装du-i18n插件,输入du i18n即可搜索 2)配置安装好之后,点击设置,自动生成配置文件du-i18n.config.json 序号字段说明配置内容备注 1 quoteKeys 引用key集合 ["this.$t", "$t", "i18n.t"] 可以配置引用key 2 defaultLang 默认显示语言 'zh' 默认取tempLangs第一个元素 3 tempLangs 扩展语言集合 ['zh'...