Replace .strings file

In mine, Localizable.Strings

I try to have all the pairs in alphabetical order. Can I reorder them alphabetically with my file Localizable.Strings

, case insensitive? Maby using genstring or a custom bash script?

For example, I have lines:

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

      

I want to receive:

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

      

+2


source to share


1 answer


You can use the ignore case sort

:



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

      

+5


source







All Articles