gpt4 book ai didi

ios - 重新排序 .strings 文件

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:26:59 24 4
gpt4 key购买 nike

在我的 Localizable.Strings 中,我尝试按字母顺序排列所有对。是否可以按不区分大小写的 Localizable.strings 文件的字母顺序对它们重新排序?可能使用 genstring 或特殊的 bash 脚本?

例如我有字符串:

"app" = "app";
"Application settings" = "Application settings";
"back" = "back";
"Back" = "Back";
"Average rating" = "Average rating";

我想收到:

"Average rating" = "Average rating";
"app" = "app";
"Application settings" = "Application settings";
"back" = "back";
"Back" = "Back";

最佳答案

您可以使用忽略大小写排序:

sort -f Localizable.strings
"app" = "app";
"Application settings" = "Application settings";
"Average rating" = "Average rating";
"Back" = "Back";
"back" = "back";

关于ios - 重新排序 .strings 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27186156/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com