GettextTranslator.Store.Translation (gettext_translator v0.4.2)

View Source

Service for managing translation operations. Handles processing PO files and translation operations.

Summary

Functions

Filters translations by the given criteria.

Loads all translations from the gettext directories.

Saves all pending translation changes and changelog entries. Called when saving work or making a PR.

Updates a translation with new values.

Functions

filter_translations(criteria)

Filters translations by the given criteria.

load_translations(gettext_path)

Loads all translations from the gettext directories.

save_all_changes()

Saves all pending translation changes and changelog entries. Called when saving work or making a PR.

save_translations_to_file(file_path, translations)

update_translation(id, params)

Updates a translation with new values.