Build translations from translations

I’d like to do something like the following in my en.yml file:

foo: “foo”
bar: “bar”
foobar: “{:foo} {:bar}”

Some languages will demand that foobar come out as “{:bar} {:foo}” or
some other combination. Is there support for such behavior? How is it
done?

Thanks,
James