importFunnelfrom'broccoli-funnel'import{broccoliasi18nextParser}from'i18next-parser'constappRoot='broccoli'leti18n=newFunnel(appRoot,{files:['handlebars.hbs','javascript.js'],annotation:'i18next-parser',})i18n=newi18nextParser([i18n],{output:'broccoli/locales/$LOCALE/$NAMESPACE.json',})exportdef...
i18next Parser When translating an application, maintaining the translation catalog by hand is painful. This package parses your code and automates this process. Finally, if you want to make this process even less painful, I invite you to checkLocize. They are a sponsor of this project. Act...
Improve parser (0.1.11) [cli] namespace and key separator option (0.1.10) Add namespace and key separator options (0.1.9) Add support for plural keys (0.1.8) Catch JSON parsing errors (0.1.8) Improve the events emitted by the stream transform (0.1.7) [cli] Make sure input and outp...
extraction tools name description i18next-scanner Scan your code, extract translation keys/values, and merge them into i18n resource files. i18next-parser A simple command line and gulp plugin that lets you parse your code and extract the translations keys in it. ...
7. 执行 npm run i18n:parser 提取全部待翻译的文本内容到 public/languages/$LOCALE/$NAMESPACE.json 位置,成功后大致文件结构如下 8. 翻译相关文件并提交代码 (推荐使用 git 进行翻译文件的版本管理,可以使用 weblate 统一管理多个项目的翻译资产) 最佳实践 在项目中尽量避免 文件名 或图标 使用中文路径,除此之外...
文件 dev 克隆/下载 git config --global user.name userName git config --global user.email userEmail open-webui / i18next-parser.config.ts i18next-parser.config.ts889 Bytes 一键复制编辑原始数据按行查看历史 Ased Mammad提交于1年前.fix: configure i18next to not return empty strings ...
In addition to the above, if you want missing values to fallback to the key in cases where the keys (e.g. got extracted by a code parser) exist in your JSON translation file with empty string as value, you also need this setting: ...
以下为官方的svg支持标签: ?...既然不能用svg symbol,那么只好把每个svg icon都定义为一个组件,如麦克风图标 class Mic extends React.Component { render() { return... ) }; export default Mic; 如果这样一个个写,那也实在是太麻烦了,于是搞了个fis3插件,自动把svg转jsx组件fis3-parser-svg-to-react-...
i18next-parser 실행 i18next-google-sheet는 이미 생성된 locales 파일에 의존하기 때문에, i18next-parser 등의 자동화 도구를 통해 각 언어별로 필요한 locales 파일이 각자 생성되어 있어야 합니다. ...
将读取该文件,并将X和Y值存储在两个变量中(X:obj[key1] Y:obj[key2]) app.use(express.bodyParser()); app.engine('html', require( 浏览2提问于2014-01-27得票数 0 2回答 Node.js和Express应用程序中的res.render()和ejs.render()有什么区别 、、、 我在我的Node.js和Express应用程序中...