txty-io / texterify

The translation and localization management system.
https://texterify.com
Other
169 stars 14 forks source link

ICU format not compatible/properly parsed by placeholders #162

Open tankerkiller125 opened 9 months ago

tankerkiller125 commented 9 months ago

Using the { and } brackets for placeholders is correct for the ICU format. However when using an ICU select or number format texterify does not parse it correctly and turns it into multuple place holders.

As an example this string: { Count, plural, =0 {There are no results.} one {There is one result.} other {There are # results.}}

Gets parsed into the following placeholders by texterify:

chrztoph commented 9 months ago

Hey, you are absolutely right. Unfortunately the ICU message format is currently not supported, but we will be adding it in the near future.