singleton
singleton copied to clipboard
[BUG] [SOURCE COLLECTION] during source collection, both i18n & l10n write same translation bundle when translations are in central place
Describe the bug Preconditions: Translation bundle are in stored in central place(like AWS S3), so i18n service will get translation from it and l10n service will write English source to it.
Description: Based on precondition, in current process, when customer call source collection API, l10n service will write English source to translation bundle. But at that time, i18n service does not know about the new source collected. So, l10n service have to call i18n service to write same source to translation bundle again, the purpose is just to clean i18n service local cache.
Expected behavior Write source twice is wasted for both S3 cost and Singleton instance resource, specially when source content are huge. It is better for l10n to send a small call to i18n service to clean cache.