23 Commits

Author SHA1 Message Date
MrYamous
20eabecb60 remove installation note about assetmapper 2026-01-13 05:49:04 +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
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
a829b5c83e Document about alternative JS assets installation with npm packages 2025-03-09 22:10:04 +01: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
Hugo Alliaume
df523d5f90 Remove yarn commands in documentations 2024-10-12 08:22:44 +02:00
Thibault G
d0beabc981 [Translator] add throwWhenNotFound method 2024-09-23 09:22:55 +02:00
Kevin Bond
2c0027a4ae bug #2060 [Translator] Revert #1965, which break cache warmup for Symfony applications (Kocal)
This PR was merged into the 2.x branch.

Discussion
----------

[Translator] Revert #1965, which break cache warmup for Symfony applications

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Issues        | Fix #2056 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - For new features, provide some code snippets to help understand usage.
 - Features and deprecations must be submitted against branch main.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
 - Never break backward compatibility (see https://symfony.com/bc).
-->

Hi everyone!

It looks like we were too fast on #1965, and our tests base didn't see the issue.

With 2.19.0, people started to have issues with the CacheWarmer from UX Translator, which was... simply never called, and so the folder `var/translations` was not generated anymore.

In private, we've decided to revert the feature to fix the issue, and to re-open the discussion if necessary.

Commits
-------

baf9f5e4 [Translator] Revert #1965, which break cache warmup for Symfony applications
2024-08-14 10:09:20 -04:00
Hugo Alliaume
43adb0043a [Translator] Revert #1965, which break cache warmup for Symfony applications 2024-08-14 06:57:58 +02:00
Hugo Alliaume
6a57fbf4a7 doc: replace link "https://symfony.com/ux" by "https://ux.symfony.com/" 2024-08-14 06:55:38 +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
Maelan LE BORGNE
e66b071ca9 Revert "Fix changing dump directory using AssetMapper"
This reverts commit a27cfc89
2024-06-12 17:30:10 +02:00
Maelan LE BORGNE
e17e0b5a47 Fix changing dump directory using AssetMapper 2024-06-10 15:33:39 +02:00
Javier Eguiluz
0a67adb838 Fix the URL of a broken link 2023-12-29 16:13:53 +01:00
Romain Monteil
568434bea4 [Docs] Add caution alert when bundle require StimulusBundle 2023-11-14 11:21:35 +01:00
jmsche
9032ebffc0 [Translator] Docs: fix link for tree shaking 2023-10-09 11:16:41 +02:00
Ryan Weaver
e57dee3d24 Asset mapper: Further docs updates 2023-06-13 12:47:30 -04:00
Ryan Weaver
c5d4e28e7a Asset mapper integration part 2! 2023-05-26 06:08:52 -04:00
Ryan Weaver
8ddb6ecfc5 Adding Asset Mapper support + new StimulusBundle 2023-05-22 12:39:44 -04:00
Hugo Alliaume
361e55b380 [Translator] Type and documentation fixes 2023-05-01 06:44:18 -04:00
Hugo Alliaume
c8921438ac [Translator] Add Symfony UX Translator package 2023-04-24 16:19:49 -04:00