Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I'm updating theme translations for an online store via the GraphQL API (tested with versions 2024-01 and 2024-10). and discovered this process is subject to race conditions.
I’m delivering translations in 3 languages for an entire theme, with around 3,400 translations per language.
I’m using the translationsRegister mutation to deliver 100 translations per query. Each request can include translations for multiple languages.
Requests can include translations for different languages.
While I haven’t encountered any throttle errors, when I try to parallelize the queries, the result is an incomplete theme update.
When I compare locale files in the code editor, I notice that some keys are missing between versions.
My understanding is that each request creates a new version of the locale file, but the updates aren’t being merged properly.
Delivering each request one by one removes the race condition, but it's very slow because each request takes ~4s
to complete.
What's the most optimised way to deliver the translations for an entire theme?
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024