NativeScript / NativeScript/plugins
nativescript/localize info about string-arrays & integer-arrays
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 206
- 派生
- 123
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 1
描述
Hi,
Hope you're well!
I've some issue or misunderstandings regards to @nativescript/localize package, in terms of arrays. Does arrays are transformed into with each item in array as ?
The arrays are mentioned in https://github.com/NativeScript/plugins/tree/main/packages/localize#file-format
If yes,
I've tried doing so, but it doesn't work, below I tried the following
Json file
{
"array": [
"split the translation into ",
"multiples lines"
]
}
XML output
<string name="array">"split the translation into multiples lines"</string>
If no
Are there any ways of doing so, or will there be plans for it? Below have an example of what I'm trying to achieve.
string-arrays
<string-array name="some_name">
<item>One</item>
<item>Two...</item>
</string-array>
integer-array
<integer-array name="some_name">
<item>2</item>
</integer-array>
Hoping that there is such feature as it would be very helpful, looking forward to hearing from you.
Best regards,
Cheers
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先阅读 issue 中链接的 @nativescript/localize 文件格式文档,并将其中记录的数组行为与所示的 JSON 和 XML 进行比较。确认是否支持 string-array 和 integer-array 资源;完成的标准是记录该行为或制定范围明确的实现计划。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, typescript
- 领域
- localization, mobile-dev
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100