NativeScript / NativeScript/plugins
[@nativescript/localize + more] Better Tutorials for these plugins [Enhancement]
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 206
- 派生
- 123
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 1
描述
I'm used to the old version of Localize but there's no step by step documentation on how to set it up via the plugins. The demo files really don't help since they don't have the same structure as a typical project.
I'm used to this in my typescript:
import { NativeScriptLocalizeModule } from 'nativescript-localize/angular'; // added to app.module
import localize from 'nativescript-localize'; // added to component where it's used
const textString = localize('@@Translated_Text');
But now it's to be used like a pipe? Can I still use it in the Typescript?
Is the en.default now a *.js file? I was using a *.json?
Just some clarification would be awesome here.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看 issue 中引用的 plugin 演示文件和设置示例,包括 app.module、TypeScript 的使用方式以及 en.default 文件格式。明确 plugin 是作为 pipe 使用,还是从 TypeScript 中使用,并在典型的项目结构中记录当前的设置。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- documentation, localization
- Issue 类型
- 文档
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100