admin_translation_set_json
Last edit: Nov 10, 2026
Sets a whole branch of translations of one locale at once from a nested JSON
object, either merging it into the existing translations or replacing every
translation whose key starts with the given key. Runs in a single transaction
and returns the number of deleted and upserted translations
admin_translation_set_json(
strategy: TranslationJsonStrategy!
translation: TranslationJsonInputType!
): TranslationJson
Arguments
strategy (TranslationJsonStrategy)
Whether to merge with or replace the existing translations
translation (TranslationJsonInputType)
Key prefix, locale and translations to set
Type
TranslationJson
Result of setting a branch of translations with admin_translation_set_json