Open yunruse opened 2 months ago
@yunruse, thanks for your contribution!! 🚀 This will be a good addition.
Tip: Localizable involving singular and plurals are tricky. For some regions there is a specific translation for zero and more than one translation for plural depending on the number involved.
I migrated the project to string catalog (xcstrings
), which makes this type of scenario easier.
Can you please update your changes?
The translation is now in an Localizable.xcstrings
file. You can add a new key to this file, and when the string has a number, like %i
for an integer, there will be the option to add plural variation, as in the image below. After that, it is possible to define the different cases and you can use a unique key for both singular and plural (the correct translation will be chosen according to the number provided as parameter).
Last pull request for the week I promise!
It feels like it would be unwieldy to add parsers and editors for this sort of thing (the Reminders app is perfectly functional!) but it seems nice to have this little display functionality in addition to the icon indicating recurrence.