Skip to content

new domain model for translations#16

Merged
virolea merged 5 commits intomainfrom
new-domain-model-for-translations
Oct 3, 2024
Merged

new domain model for translations#16
virolea merged 5 commits intomainfrom
new-domain-model-for-translations

Conversation

@virolea
Copy link
Owner

@virolea virolea commented Oct 1, 2024

Important

Breaking change

In this PR we overhaul the data model to account for future development of #10 and #6.

It's been decided to remove the TranslationKey object in favour of a generic TextEntry one.

Everything now is a TextEntry, whether it's the text picked from the views in the default locale, to translated versions.

TextEntries are linked together through the translation model. The translation model now represent the translation from a given text entry to another, in a target locale. This made more sense, and will enable variations of the base untranslated texts.

@virolea virolea force-pushed the new-domain-model-for-translations branch 23 times, most recently from 17aa90d to 26b4cf7 Compare October 2, 2024 15:11
@virolea virolea force-pushed the new-domain-model-for-translations branch from a6990a3 to 7d42fef Compare October 3, 2024 08:20
@virolea virolea force-pushed the new-domain-model-for-translations branch from 7d42fef to fcb7c4d Compare October 3, 2024 08:21
@virolea virolea marked this pull request as ready for review October 3, 2024 08:25
@virolea virolea merged commit 545e199 into main Oct 3, 2024
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