BazingaJsTranslationBundle icon indicating copy to clipboard operation
BazingaJsTranslationBundle copied to clipboard

When domain is not defined, get_message find translations in intl-icu format but don't format it correctly

Open spras opened this issue 4 years ago • 2 comments

Given the following translations file:

# translations/messages+intl-icu.en.yaml hello_name: Hello {name}!

When domain is not defined, get_message find the translation in intl-icu format, but it don't format it correctly.

Translator.trans('hello_name', { name: 'John' })

give

Hello {name}!

it should give

Hello John!

spras avatar Jan 12 '21 14:01 spras

#314 fix it

spras avatar Jan 13 '21 06:01 spras

I encountered the same issue, is this going to be merged?

aheidelberg avatar Jan 27 '21 13:01 aheidelberg