我想从常用数据表中为Android和iOS生成i18n复数文件。我发现twine可以为我做。不幸的是twine does not support plurals。有人建议将多个文件嵌入资源字符串中。在Android中,它看起来像这样:
<plurals name="cool_things">
<item quantity="one">@string/cool_things_one</item>
<item quantity="other">@string/cool_things_other</item>
</plurals>
通过这种方式,多个文件可以使用由twine生成的字符串。是否有可能以相同的方式嵌入从Localizable.strings到Localizable.stringsdict的字符串?如果没有,你如何解决复数的跨平台i18n?