Skip to content

feat: Allow to use an existing translator#85

Merged
sokil merged 2 commits into
sokil:4.0from
Crovitche-1623:patch-1
Sep 16, 2025
Merged

feat: Allow to use an existing translator#85
sokil merged 2 commits into
sokil:4.0from
Crovitche-1623:patch-1

Conversation

@Crovitche-1623

Copy link
Copy Markdown
Contributor

Problem and context

With the existing implementation, we cannot see potential missing translations and add them in our own translations files.

Proposal

With this PR, we can use the existing translator from symfony that allow us to see the missing translations + add potential missing translations.

Breaking change ?

None as the parameter is only used if it's not null and it'll be null by default.

@coveralls

coveralls commented Sep 8, 2025

Copy link
Copy Markdown

Coverage Status

coverage: 90.887%. remained the same
when pulling 7aec814 on Crovitche-1623:patch-1
into bd37bda on sokil:4.0.

@Crovitche-1623

Copy link
Copy Markdown
Contributor Author

The missing translations will therefore appears in the Web Profiler :

image

@sokil

sokil commented Sep 8, 2025

Copy link
Copy Markdown
Owner

May you add it as second parameter to not change parameter order? It adds breaking change when passed as first param.

@Crovitche-1623

Crovitche-1623 commented Sep 8, 2025

Copy link
Copy Markdown
Contributor Author

May you add it as second parameter to not change parameter order? It adds breaking change when passed as first param.

@sokil Done 👍🏻

@sokil sokil merged commit f1a337e into sokil:4.0 Sep 16, 2025
9 checks passed
@Crovitche-1623

Copy link
Copy Markdown
Contributor Author

Thanks @sokil

@Crovitche-1623 Crovitche-1623 deleted the patch-1 branch September 17, 2025 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants