virolea / rosetta

Unobstrusive Internationalization solution for Rails applications.
MIT License
53 stars 1 forks source link

new domain model for translations #16

Closed virolea closed 1 week ago

virolea commented 1 week ago

[!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.