facebook / fbt

A JavaScript Internationalization Framework
https://facebook.github.io/fbt
MIT License
3.9k stars 178 forks source link

Documentation: how to format plural Localizable.strings in iOS #314

Open albullington opened 2 years ago

albullington commented 2 years ago

🚀 Feature Proposal

Include an example in the demo app on how to format plural translation strings (or any strings with variables) in iOS.

Motivation

Right now, the only examples of localizing strings in iOS are the plain text examples in the demo app. Pluralization is one of the more interesting features of FBT.

Example

Since there are no scripts for automatically turning translations into iOS localized strings, an example of plurals in iOS would help developers write their own scripts and make sure iOS localized strings can be used by the fbt framework.

Pitch

FBT is written to be cross-platform. Currently, it is only easy to use (with ample code and documentation) on Android.