Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change types for component translation storage #13

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

sergei-maertens
Copy link
Member

Part of open-formulieren/open-forms#2958

This is a 💥 breaking change.

Rather than storing translations on the entire form definition, we will now track them on the component definition itself. This results in what was internal API/implementation detail to become public API, and the types for this representation are now updated.

We store translations in openForms.translations for each component, which itself is a mapping of
language code to a mapping of translations. Such a translation mapping has the translatable properties (of the component) as key and the translation as
value.

…lation storage

Rather than storing translations on the entire form
definition, we will now track them on the component
definition itself. This results in what was internal
API/implementation detail to become public API, and
the types for this representation are now updated.

We store translations in openForms.translations for
each component, which itself is a mapping of
language code to a mapping of translations. Such a
translation mapping has the translatable properties
(of the component) as key and the translation as
value.
@sergei-maertens sergei-maertens merged commit 8be69a7 into main Oct 9, 2023
@sergei-maertens sergei-maertens deleted the feature/of-2958-translations-on-component branch October 30, 2023 12:01
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.

1 participant