microsoft / microsoft/LocalizedStringKit
What is the use-case for this library compared to Xcode - Export for Localization and import?
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 293
- 派生
- 12
- PR 合并指标
- 30 天内没有已合并 PR
描述
I am trying to better understand the use-case for this library compared to the standard localisation workflow in Xcode.
In the readme you say:
LocalizedStringKit is a tool that lets you write English strings directly into your source code and generate the required .strings files later. No more manually managing string keys or remembering to add them to the strings file later. All you do is change:
label.text = NSLocalizedString("TERMS_SCREEN_MAIN_HEADER", "Comment here...")
...
If you use NSLocalizedString, you can write English strings directly into the source code as the key parameter (in the same way as with the replacement function in this library). Then to generate the strings files for the other languages, in Xcode,
- Select the project in the sidebar
- Select, menu item Editor -> Export for Localization
- Add the target translations to the resulting XLIFF
- Then import again with Editor -> Import Localisation
Result: Xcode will create the strings files and add them to the project
Furthermore, If you alternatively use keys such as NSLocalizedString("my.string.a", ..), you can export the development language, in the same way as described above, and import to generate the strings file for the development language.
Is this library for when you don't use Xcode, or don't want to use the xliff-based workflow (for some reason)?
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
结合 issue 中描述的 Xcode Editor → Export for Localization 和 Import Localization 工作流,审查 README 中的描述。明确该库的预期使用场景,以及它是否面向不使用 Xcode 或 XLIFF 工作流的项目;当 README 清楚地比较这些方法时即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- documentation, localization
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100