{"id":39989,"date":"2018-12-06T21:19:02","date_gmt":"2018-12-06T21:19:02","guid":{"rendered":"https:\/\/developer.wordpress.org\/reference\/classes\/wp_scripts\/set_translations\/"},"modified":"2026-05-20T22:22:20","modified_gmt":"2026-05-20T22:22:20","slug":"wp_scripts-set_translations","status":"publish","type":"wp-parser-method","link":"https:\/\/developer.wordpress.org\/reference\/classes\/wp_scripts\/set_translations\/","title":{"rendered":"WP_Scripts::set_translations()"},"excerpt":{"rendered":"<p>Sets a translation textdomain.<\/p>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"wp-parser-source-file":[1191],"wp-parser-package":[718,3],"wp-parser-since":[907,937],"class_list":["post-39989","wp-parser-method","type-wp-parser-method","status-publish","hentry","wp-parser-source-file-wp-includes_class-wp-scripts-php-2","wp-parser-package-dependencies","wp-parser-package-wordpress","wp-parser-since-5-0-0","wp-parser-since-5-1-0"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/39989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method"}],"about":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/types\/wp-parser-method"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/comments?post=39989"}],"version-history":[{"count":1,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/39989\/revisions"}],"predecessor-version":[{"id":41015,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/39989\/revisions\/41015"}],"wp:attachment":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/media?parent=39989"}],"wp:term":[{"taxonomy":"wp-parser-source-file","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-source-file?post=39989"},{"taxonomy":"wp-parser-package","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-package?post=39989"},{"taxonomy":"wp-parser-since","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-since?post=39989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}