Post

Replies

Boosts

Views

Activity

Reply to Strings Catalog (.xcstrings) plural rules without format (Xcode 15)
Hi, I have had the same problem you can achieve a string without a numerical specifier when editing the source code of the xcstrings file. right click .xcstrings > Open As > Source Code add this to strings object and edit this as your want: "%lld day" : { "localizations" : { "de" : { "stringUnit" : { "state" : "translated", "value" : "%#@day@" }, "substitutions" : { "day" : { "formatSpecifier" : "lld", "variations" : { "plural" : { "one" : { "stringUnit" : { "state" : "translated", "value" : "Tag" } }, "other" : { "stringUnit" : { "state" : "translated", "value" : "Tage" } } } } } } }, "en" : { "stringUnit" : { "state" : "translated", "value" : "%#@day@" }, "substitutions" : { "day" : { "formatSpecifier" : "lld", "variations" : { "plural" : { "one" : { "stringUnit" : { "state" : "translated", "value" : "day" } }, "other" : { "stringUnit" : { "state" : "translated", "value" : "days" } } } } } } } } }, note: %lld day is translated in German Its sad that we need to this every time manual by adding it to the source code.
Sep ’23
Reply to Strings Catalog (.xcstrings) plural rules without format (Xcode 15)
Hi, I have had the same problem you can achieve a string without a numerical specifier when editing the source code of the xcstrings file. right click .xcstrings > Open As > Source Code add this to strings object and edit this as your want: "%lld day" : { "localizations" : { "de" : { "stringUnit" : { "state" : "translated", "value" : "%#@day@" }, "substitutions" : { "day" : { "formatSpecifier" : "lld", "variations" : { "plural" : { "one" : { "stringUnit" : { "state" : "translated", "value" : "Tag" } }, "other" : { "stringUnit" : { "state" : "translated", "value" : "Tage" } } } } } } }, "en" : { "stringUnit" : { "state" : "translated", "value" : "%#@day@" }, "substitutions" : { "day" : { "formatSpecifier" : "lld", "variations" : { "plural" : { "one" : { "stringUnit" : { "state" : "translated", "value" : "day" } }, "other" : { "stringUnit" : { "state" : "translated", "value" : "days" } } } } } } } } }, note: %lld day is translated in German Its sad that we need to this every time manual by adding it to the source code.
Replies
Boosts
Views
Activity
Sep ’23