17 Commits

Author SHA1 Message Date
Hugo Alliaume
359e337791 Drop Biome.js for oxfmt and oxlint 2026-02-03 23:14:09 +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
9616091db2 Fix changelogs 2025-08-27 17:25:48 +02:00
Hugo Alliaume
d79e1f241e Ensure PHP 8.5 compatibility 2025-08-22 16:23:49 +02:00
Hugo Alliaume
3871e849be Add support for Symfony 8 2025-08-06 00:04:40 +02:00
Alexander Hofbauer
fb08799065 [Translator] Handle W3C locale format on document element
According to W3C[1] (and RFC1766) the valid format for language codes is
"primary-code"-"subcode", but Symfony expects underscores as separator,
resulting in broken translations.

This changes language codes specified in the correct format for HTML to
the Symfony format when reading the "lang" attribute.

Fixes #2378

[1] https://www.w3.org/TR/html401/struct/dirlang.html#h-8.1.1
2024-11-20 18:07:49 +01:00
Thibault G
d0beabc981 [Translator] add throwWhenNotFound method 2024-09-23 09:22:55 +02:00
Maelan LE BORGNE
2877a207dd [Translator] Add configuration to filter dumped translations by domain 2024-07-18 08:57:19 -04:00
Ryan Weaver
d825dd3e3d Prepping 2.16 changelogs 2024-02-29 11:20:59 -05:00
Hugo Alliaume
bc33f970ce [Translator] Update intl-messageformat range version to ^10.5.11, close #1437 2024-02-01 08:17:32 +01:00
Simon André
d6ecd457de Remove "type": "module" from all package.json files 2023-11-10 20:20:31 -05:00
Ryan Weaver
ef4d3896e4 bumping CHANGELOG for 2.13 2023-11-07 16:10:30 -05:00
Ryan Weaver
8ddb6ecfc5 Adding Asset Mapper support + new StimulusBundle 2023-05-22 12:39:44 -04:00
Hugo Alliaume
c8921438ac [Translator] Add Symfony UX Translator package 2023-04-24 16:19:49 -04:00