Last active
September 22, 2016 11:10
-
-
Save marktopper/08891010238e152553a8fb02ffc4bb8f to your computer and use it in GitHub Desktop.
[OS.js] Get missing language keys for all languages
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
console.log(Object.keys(OSjs.Locales).map(function(l) { | |
return 'Locale `' + l + '` misses:\n' + Object.keys(OSjs.Locales.en_EN).filter(function(v) { | |
return typeof OSjs.Locales[l][v] === 'undefined'; | |
}).map(function(i) { | |
return '- ' + i; | |
}).join('\n'); | |
}).join('\n\n')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kudos to @andersevenrud for the cleanup in revision 2.