WordPress/wp-includes/js
herregroen 6ff1386460 I18N: Add JavaScript translation support.
Adds the `wp_set_script_translations` function which registers translations for a JavaScript file. This function takes a handle, domain and optionally a path and ensures JavaScript translation files are loaded if they exist.

Props atimmer, omarreiss, nerrad, swissspidy, ocean90.
Fixes #45103.

Built from https://develop.svn.wordpress.org/branches/5.0@43825


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-26 07:35:06 +00:00
..
codemirror Remove JSHint due to license compatibility 2018-01-23 03:38:41 +00:00
crop
dist I18N: Add JavaScript translation support. 2018-10-26 07:35:06 +00:00
imgareaselect Media: Update minified version of imgAreaSelect after [42874]. 2018-04-03 19:51:37 +00:00
jcrop
jquery Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
mediaelement Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
plupload Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
swfupload Remove SWFUpload, 2017-09-21 16:35:48 +00:00
thickbox Administration: Thickbox: Fix conflicts with the Plugin details and native Thickbox modals. 2017-09-09 14:14:43 +00:00
tinymce TinyMCE: remove stray CSS map reference from `skin.min.css`. 2018-10-22 06:05:39 +00:00
admin-bar.js
admin-bar.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
api-request.js REST API: Handle api-request query parameters with plain permalinks. 2018-10-19 18:33:39 +00:00
api-request.min.js REST API: Handle api-request query parameters with plain permalinks. 2018-10-19 18:33:39 +00:00
autosave.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
autosave.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
backbone.min.js
colorpicker.js
colorpicker.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
comment-reply.js Docs: improve JS docs for `comment-reply.js` 2017-08-24 17:58:44 +00:00
comment-reply.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
customize-base.js Customize: Constrain focus when overlay notification is displayed. 2017-10-10 03:34:53 +00:00
customize-base.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
customize-loader.js Customize: Eliminate use of customize-loader in core so Customizer is opened consistently in `top` window. 2017-10-09 16:04:48 +00:00
customize-loader.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
customize-models.js Customizer: Minimize duplicate header crops in the media library. 2017-10-04 14:59:48 +00:00
customize-models.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
customize-preview-nav-menus.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
customize-preview-nav-menus.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
customize-preview-widgets.js Widgets: Update preview for Gallery widget when one of its attachments is modified in the media modal, outside the customized state. 2017-10-16 06:46:48 +00:00
customize-preview-widgets.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
customize-preview.js Customize: Prevent `history.replaceState()` and `history.pushState()` calls from causing error in customize preview before DOM ready. 2017-11-02 19:27:47 +00:00
customize-preview.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
customize-selective-refresh.js Customize: Ensure media playlists get initialized after selective refresh; expose new `wp.playlist.initialize()` API. 2018-01-30 14:56:41 +00:00
customize-selective-refresh.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
customize-views.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
customize-views.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
heartbeat.js Customize: Add changeset locking in Customizer to prevent users from overriding each other's changes. 2017-10-12 04:01:46 +00:00
heartbeat.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
hoverIntent.js
hoverIntent.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
imagesloaded.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
json2.js
json2.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
masonry.min.js
mce-view.js Editor: Fix determining TinyMCE editor width when in inline mode instead of iframe mode. 2017-12-13 05:19:40 +00:00
mce-view.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
media-audiovideo.js Build tools: Upgrade webpack to version 4. 2018-10-10 04:16:23 +00:00
media-audiovideo.min.js Build tools: Upgrade webpack to version 4. 2018-10-10 04:16:23 +00:00
media-editor.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
media-editor.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
media-grid.js Build tools: Upgrade webpack to version 4. 2018-10-10 04:16:23 +00:00
media-grid.min.js Build tools: Upgrade webpack to version 4. 2018-10-10 04:16:23 +00:00
media-models.js Build tools: Upgrade webpack to version 4. 2018-10-10 04:16:23 +00:00
media-models.min.js Build tools: Upgrade webpack to version 4. 2018-10-10 04:16:23 +00:00
media-views.js Build tools: Upgrade webpack to version 4. 2018-10-10 04:16:23 +00:00
media-views.min.js Build tools: Upgrade webpack to version 4. 2018-10-10 04:16:23 +00:00
quicktags.js
quicktags.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
shortcode.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
shortcode.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
twemoji.js Emoji: Update Twemoji to version 11.0. 2018-07-13 06:37:26 +00:00
twemoji.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
underscore.min.js
utils.js Move `sanitizeText` and `stripTags` from press this to `wp.sanitize`. 2017-07-15 15:48:46 +00:00
utils.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-a11y.js File Editors: Introduce sandboxed live editing of PHP files with rollbacks for both themes and plugins. 2017-10-04 00:20:45 +00:00
wp-a11y.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-ajax-response.js General: Replace `Cheatin’ uh?` with friendlier error messages. 2018-03-09 00:15:42 +00:00
wp-ajax-response.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-api.js REST API: generate a valid fallback URI in wp.api.utils.getRootURL. 2018-10-18 20:49:25 +00:00
wp-api.min.js REST API: generate a valid fallback URI in wp.api.utils.getRootURL. 2018-10-18 20:49:25 +00:00
wp-auth-check.js
wp-auth-check.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-backbone.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-backbone.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-custom-header.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-custom-header.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-embed-template.js
wp-embed-template.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-embed.js Embeds: Avoid a JS error in `wp.receiveEmbedMessage` if `data` parameter is not set. 2018-10-11 04:00:23 +00:00
wp-embed.min.js Embeds: Avoid a JS error in `wp.receiveEmbedMessage` if `data` parameter is not set. 2018-10-11 04:00:23 +00:00
wp-emoji-loader.js Emoji: Update Twemoji to version 11.0. 2018-07-13 06:37:26 +00:00
wp-emoji-loader.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-emoji-release.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-emoji.js
wp-emoji.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-list-revisions.js
wp-list-revisions.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-lists.js
wp-lists.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-pointer.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-pointer.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-sanitize.js Security: Rename new `wp.sanitize.sanitizeText` to `stripTagsAndEncodeText`.' 2017-10-04 18:58:47 +00:00
wp-sanitize.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wp-util.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-util.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wpdialog.js
wpdialog.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
wplink.js Editor: Prevent adding `javascript:` and `data:` URLs through the inline link dialog. 2017-09-19 08:01:45 +00:00
wplink.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
zxcvbn-async.js
zxcvbn-async.min.js Build/Test Tools: Revert grunt-contrib-uglify update 2018-10-10 04:11:25 +00:00
zxcvbn.min.js