0

I'm translating the Ghost CMS Admin UI using ember-intl for a personal project. I'm trying to use {key, select, matches} (reference) to avoid duplicating one translation many times.

In en-us.yaml I wrote:

    There was an error loading: There was an error loading {error, select,
        MRR {MRR}
        "total members" {total members}
        "paid members" {paid members}
        "newsletter open rates" {newsletter open rates}
        "member events" {member events}
        events {events}
        other {other}
        }

And get this error:

>> An error occurred (Expected "}" or argName but "\"" found.) when extracting ICU arguments for
'There was an error loading {error, select, MRR {MRR} "total members" {total members} "paid members" {paid members} "newsletter open rates" {newsletter open rates} "member events" {member events} events {events} other {other} }'

If I reduce each match to one word, it works:

    There was an error loading: There was an error loading {error, select,
        MRR {MRR}
        total {total members}
        paid {paid members}
        newsletter {newsletter open rates}
        member {member events}
        events {events}
        other {other}
        }

The error happens on the first ". But if I remove the quotes from the multi-word matches, I get the following error: Expected "{" but "m" found. E.g. after the word total it expects {. How can I have multi-word matches?

4

0 回答 0