Skip to content

Instantly share code, notes, and snippets.

@atk
Created November 14, 2014 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atk/29fd5f8a00ac333b4a29 to your computer and use it in GitHub Desktop.
Save atk/29fd5f8a00ac333b4a29 to your computer and use it in GitHub Desktop.
Small snippet to create ACE i18n from WoW lua files in Chrome developer tools
// view raw lua file, open developer tools, select pre and run in console:
x={}; $0.innerHTML.replace(/L\["(.*?)"\]/g, function(c){ x[c] = true; }); L = []; for (var c in x) { L.push( c + ' = true') }; $0.innerHTML = L.join('\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment