Created
November 14, 2014 07:13
-
-
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
This file contains 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
// 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