BazingaJsTranslationBundle
BazingaJsTranslationBundle copied to clipboard
A pretty nice way to expose your Symfony translation messages to your client applications.
Hello, I'm using Symfony 5.1, webpack Encore 1.8 and bazinga-translator 4.0.1. I have this error : > Uncaught ReferenceError: Translator is not defined Howerver, I import the module in the...
When I have translation id like this: ``` translation.id: {count, plural, one {1 item} other {{count} items} } ``` it doesn't work in js with > Translator.trans('translation.id', { count: 23});...
support translation ids like translation.id: {count, plural, one {1 item} other {{count} items} }
The filter "raw" is necessary to encode language with subtags in javascript file, otherwise there is an error on locale code ("en\u002DUS" for example).
When I launch my application in production, this can´t generate the translation data. https://myapp/translations ![image](https://user-images.githubusercontent.com/7659351/121350639-37179080-c92b-11eb-8269-16bb60c9173f.png)
I implemented the `--merge-fallback` option on dumper command which will merge fallback translations into files which are missing translations. Currently, it's working only with `--merge-domains` option. This pull request deals...
I know there is a lot of topic about this, but there is a lot of informations and not working for me. The doc are not updated with `Encore`, so...
Hi i found that my messages file is almost empty file Bazinga\Bundle\JsTranslationBundle\Controller in method getTranslationsAction i see in loop foreach ($files as $filename) { `$translations[$locale][$currentDomain] = array(); ` this clear...
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', {...
Hello, I'm currently having some trouble with the fallback behaviour. In this method, shouldn't the fallbackLocale be added to the default locales ? https://github.com/willdurand/BazingaJsTranslationBundle/blob/26d37937a5b074b410eee18e82ebd4ec95cdb569/Controller/Controller.php#L194 Because, currently it will use the...