Details (Give details about what this PR accomplishes, include any screenshots etc)
This pull request introduces the following changes:
Addition of two new classes to the database models: ManualCommunityTranslation and StaticSiteText. This includes necessary cleanup of white space inconsistencies.
Introduction of a new model, CommunitySupportedLanguage, that links Communities with SupportedLanguages via foreign keys. This is a significant step towards managing the languages supported by different communities on our platform.
Addition of the TranslationsCache model. This model represents translation data with attributes including hash, source_language_code, target_language_code, translated_text, and last_translated, and includes JSON methods for serialization.
Creation of the TextHash model. This new database model has key attributes of hash and text, with the hash being a unique primary key.
Introduction of the SupportedLanguage class which represents the languages supported by our platform. This update also included minor code cleanups for readability and maintainability.
Addition of a new constant for language code string length. This included a refactor of the base model to create a new RootModel with common fields and methods, which contributes to reducing code duplication and increasing modularity.
Testing Steps (Provide details on how your changes can be tested)
Requirements (place an x in each [ ])
[x] I've read and understood the Contributing Guidelines and have done my best effort to follow them.
Summary / Highlights
Addresses #1085
Details (Give details about what this PR accomplishes, include any screenshots etc)
This pull request introduces the following changes:
Testing Steps (Provide details on how your changes can be tested)
Requirements (place an
x
in each[ ]
)Transparency (Project board)