-
Notifications
You must be signed in to change notification settings - Fork 71
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
refactor: l10n in HamsteriOS #452
base: main
Are you sure you want to change the base?
Conversation
您好,感谢您的PR,有些问题和个人想法。
|
|
另外除了 App 的国际化外,键盘还需要做,感觉是个费力的活。 |
Action step 我花些時間試試,en l10n 先不進PR,之後看是否有人幫忙低優先就是。
我不過是rime-liur*方案的繁體用戶,不會iOS開發。發現可以用倉套方案來用真是太好了 |
客气了,英文可以先不做,因为过长的英文,如果 UI 没做适配,显示就会有问题。当然如果您有空余时间,也可以做下英文的界面测试更好。 键盘目前来说主要是回车键显示的问题,我之前把回车键的国际化删除了,目前全部用中文简体写死了。因为键盘启动读取国际化文件会有一定的延迟,大约 5ms 左右,不过这个可以在优化后,重新在加上。 另外,对于引入 swiftgen 我有点犹豫,因为 iOS 有原生的国际化解决方案。除非是有什么原因,我建议尽量使用原生解决方案。 |
如何知道使用swiftgen產生的static enum 對此有改善?
原生解決方案是新的 String catalog?看swiftgen的討論像是內部仍會 compile 成 strings,不確定這裡的差異是什麼。可提供些指引? |
01b0def
to
c9f3a93
Compare
* Introduce swiftgen for l10n dev * Extract strings of Settings view to zh-Hans & zh-Hant l10n files * CI: add a step to run swiftgen make target
Top level keyboard preferences
Strings related to zh 26 key layout
Strings related to KeySwipe views
Strings related to symbol editor/subview/setting
chinese 9 grid
Number 9 grid
Space settings
|
Note: manually exec swiftgen to update the generated file