Skip to content

Instantly share code, notes, and snippets.

@marktopper
Last active September 22, 2016 11:10
Show Gist options
  • Save marktopper/08891010238e152553a8fb02ffc4bb8f to your computer and use it in GitHub Desktop.
Save marktopper/08891010238e152553a8fb02ffc4bb8f to your computer and use it in GitHub Desktop.
[OS.js] Get missing language keys for all languages
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'));
@marktopper
Copy link
Author

Kudos to @andersevenrud for the cleanup in revision 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment