Created
March 17, 2015 13:49
-
-
Save igmoweb/a97c8b80926f2566efcd to your computer and use it in GitHub Desktop.
uploader.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Esto es lo que crea wp_localize_script ( no lo tienes que poner en tu fichero): | |
media_files_i18n = { | |
conti: 'John Conti', // O su versión traducida, si la hay | |
my_string: 'My String' // O su versión traducida, si la hay | |
}; | |
// Y ahora, dentrode uploader.js, simplemente puedes usar: | |
var my_name = media_files_i18n.conti |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment