faberNovel / ad_localize

ADLocalize is a simple way to manage your localization files. Supported wording sources : CSVs and Google Sheets. Localization file generation available for iOS, Android, JSON (i18next), YAML and Java properties
https://rubygems.org/gems/ad_localize
MIT License
24 stars 8 forks source link

Feature/adaptive strings #18

Closed felginep closed 4 years ago

felginep commented 4 years ago

Handles adaptive strings for iOS.

The proposed format is :

,start_countdown##{20},Commencer,,Start,
,start_countdown##{25},Commencer,,Start countdown,
,start_countdown##{50},Commencer le compte à rebours,,Start countdown,

to generate the following content in Localizable.strings:

<key>start_countdown</key>
<dict>
    <key>NSStringVariableWidthRuleType</key>
    <dict>
        <key>20</key>
        <string>Start</string>
        <key>25</key>
        <string>Start countdown</string>
        <key>50</key>
        <string>Start countdown</string>
    </dict>
</dict>