lexik / LexikTranslationBundle

This Symfony bundle allow to import translation files content into the database and provide a GUI to edit translations.
MIT License
419 stars 255 forks source link

Translations +intl-icu support #430

Closed ice-devel closed 1 year ago

ice-devel commented 1 year ago

Hi,

I'm having an issue when trying to use ICU syntax for translations.

I have added the "+intl-icu" prefix to the translation filename and used the command "console lexik:translations:import" to import translations stored in yaml format with ICU syntax. The translations are successfully imported into the database and can be accessed via the LexikTranslationBundle web interface (the domain created is "messages+intl-icu").

However, when I try to use these translations, I'm unable to access them using the "messages" domain with ICU syntax, the translation key is displayed.

Obviously, all is fine if I let the translation key in the file

I'm not sure what I'm doing wrong or how to fix this issue, does this bundle support the ICU syntax ?

Any help would be greatly appreciated.

bartmcleod commented 1 year ago

@ice-devel Can you maybe add an example file to this issue, so that I can try it for myself? I think we should support it if it is valid.

ice-devel commented 1 year ago

@bartmcleod So sorry, it works. I clicked "Invalidate cache" button after import coommand, and event if I was in dev mode, I had to clear my symfony dev cache too :/

:)

bartmcleod commented 1 year ago

No worries :-)