Skip to content

Conversation

victorlazzaroli
Copy link

@victorlazzaroli victorlazzaroli commented May 25, 2025

Introduce a hook or extension point that allows modification of the raw translation value before the interpolation phase begins.

Issue: #1555

@CodeAndWeb
Copy link
Member

We already have this functionality in form of the translate compiler.
It receives the translations before they are committed to the store.
The point in time is a bit earlier than your proposed hook.

@victorlazzaroli
Copy link
Author

I considered using the compiler to flatten the tree structure, but the cost is that it has to process the entire file every time it is loaded.
For this reason, I think it is more efficient and convenient to introduce the hook, especially for large files. 😊

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.

2 participants