AckeeCZ / ACKLocalization

Localize your Cocoa apps from Google Spreadsheet
MIT License
28 stars 3 forks source link

SpreadSheet Plural example #28

Closed baptiste-faure1811 closed 2 years ago

baptiste-faure1811 commented 2 years ago

Hello ;) Is it possible to add a spreadsheet example that has plurals ? I can't figure out how to make it work ? English os not my native language and I am not sure to understand correctly how to use: translation.key##{zero} Thanks in advance

olejnjak commented 2 years ago

Sure, thanks for the input 🙂 Basically it just copies behavior from native stringsdicts so in the sheet you have key in whatever form you want and just append the plural category/rule so you end up with keys like key##{zero}, key##{one}, key##{few}, key##{many}, key##{other}

LukasHromadnik commented 2 years ago

Here you can see an example from one of our projects

Snímek obrazovky 2022-04-12 v 10 42 40
baptiste-faure1811 commented 2 years ago

Thank you !! You answered so fast I almost missed the email. Perfect, thanks a lot 🎉