Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 功能建议:采用 Xcode 15 引入的 String Catalog 进行本地化 #176

Closed
4 tasks done
Jerry23011 opened this issue Sep 21, 2023 · 4 comments · Fixed by #178
Closed
4 tasks done

🚀 功能建议:采用 Xcode 15 引入的 String Catalog 进行本地化 #176

Jerry23011 opened this issue Sep 21, 2023 · 4 comments · Fixed by #178
Assignees
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request fixed in next release The issue will be closed once next release is available

Comments

@Jerry23011
Copy link
Collaborator

请先确认以下事项

  • 已仔细阅读了 README
  • issues 页面搜索过(包括已关闭的 issue),未发现类似功能建议
  • Easydict 已升级到最新版本

功能描述

Xcode 15 加入了新的本地化方式 String Catalog,每次 build 的时候都可以自动检索代码中的字符串然后自动添加到 catalog 里,无需手动添加 string,只需要在不需要翻译的字符串加 comment 说明无需翻译
截屏2023-09-21 12 55 45
截屏2023-09-21 12 56 02

使用场景(可选)

在 Xcode 15+ 进行开发时让 Xcode 自动同步本地化字符串

实现方案(可选)

从 Localizable.string/Localizable.stringdict 迁移到 String Catalog

Developer Doc
WWDC Video session

是否愿意提交 PR 实现该功能

  • 我愿意提交 PR!
@Jerry23011 Jerry23011 added enhancement New feature or request dependencies Pull requests that update a dependency file labels Sep 21, 2023
@Jerry23011 Jerry23011 self-assigned this Sep 22, 2023
@tisfeng
Copy link
Owner

tisfeng commented Sep 22, 2023

这个好!那就麻烦你迁移一下了。

@Jerry23011
Copy link
Collaborator Author

这个好!那就麻烦你迁移一下了。

没问题,大概这周末提 PR

@Jerry23011 Jerry23011 linked a pull request Sep 24, 2023 that will close this issue
@Jerry23011 Jerry23011 added the fixed in next release The issue will be closed once next release is available label Sep 24, 2023
@choykarl
Copy link
Collaborator

choykarl commented Oct 8, 2023

现在必须要使用xcode15才能打开工程了么

@tisfeng
Copy link
Owner

tisfeng commented Oct 8, 2023

是的,新引入的 String Catalog 需要 Xcode 15, 这个提交 4ac786a 之前可以用 Xcode 14。

稍后我弄个 String Catalog 之前的代码分支,只为了方便简单调试,不会维护功能。

@tisfeng tisfeng closed this as completed Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request fixed in next release The issue will be closed once next release is available
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants