Hugo Alliaume
2254e170c4
Run PHP-CS-Fixer (no_useless_else & static_lambda)
2026-02-03 22:36:24 +01:00
Hugo Alliaume
fde719a879
[Translator] Add keys_patterns configuration option to filter dumped translations by key patterns
2025-12-26 18:37:51 +01:00
Hugo Alliaume
9472902436
[Translator] Refactor TranslationsDumper options from __constructor and setters, to dump method
2025-12-20 08:43:53 +01:00
Hugo Alliaume
4915996a67
[Translator] Add option ux_translator.dump_typescript to enable/disable TypeScript types generation
2025-12-06 04:52:14 +09:00
Hugo Alliaume
5a161e5daa
[Translator] Refactor API to use string-based translation keys instead of generated constants
2025-12-03 23:35:13 +01:00
Hugo Alliaume
5654f0d88d
Run latest PHP-CS-Fixer with improved configuration
2025-08-14 22:58:41 +02:00
Nicolas Grekas
8fc244ed82
Apply fabbot rules
2025-07-29 17:18:27 +02:00
Hugo Alliaume
22ad68d3a3
[Translator] Add functional test to ensure only enabled_locales are dumped
2025-07-27 23:47:26 +02:00
Hugo Alliaume
636a38ce98
[Translator] Move already generated constants from static var to class property
...
Otherwise the generated constants were persisted between tests, and lead to bad constants names generation.
2025-06-27 11:10:31 +02:00
Simon André
c64f87cc25
[CI] Add missing return type in test Kernel
2025-06-08 15:02:51 +02:00
Hugo Alliaume
5ee567e3c9
[Translator] Improve performance, extract some logic from a loop from IntlMessageParser#generateConstantName()
2024-09-25 16:25:31 +02:00
Hugo Alliaume
43adb0043a
[Translator] Revert #1965 , which break cache warmup for Symfony applications
2024-08-14 06:57:58 +02:00
Maelan LE BORGNE
2877a207dd
[Translator] Add configuration to filter dumped translations by domain
2024-07-18 08:57:19 -04:00
Sander Verkuil
4479d4a284
Disable cache warmup when translator is identity translator
2024-07-08 11:38:27 -04:00
Wolfgang Weintritt
d2f9311d89
[Translator] Create valid constant names for keys starting with numeric chars
...
If the key of a translation started with a numeric character, the constant's name would also start with a numeric character, thus resulting in a JS syntax error. Prefixing the constant's name with an underscore makes it valid.
2024-04-30 22:43:03 +02:00
Simon André
802ced1bc3
[CI][Tests] Use static dataProvider
...
Prepare PhpUnit 10
2024-01-14 08:27:47 +01:00
Simon André
eec3852271
[CS] Update PhpCsFixer config
2023-10-16 13:41:19 -04:00
Hugo Alliaume
a0e8b16e9f
fix(translator): generate unique constants name ( fix #938 )
2023-06-15 08:30:39 +02:00
Hugo Alliaume
bc96739e03
[Translator] Prefix bundle and extension classes with "Ux"
2023-04-26 09:14:03 +02:00
Hugo Alliaume
c8921438ac
[Translator] Add Symfony UX Translator package
2023-04-24 16:19:49 -04:00