Skip to content

Instantly share code, notes, and snippets.

@stevro
Created July 30, 2020 12:42
Show Gist options
  • Select an option

  • Save stevro/e7a067d449bccf3854818fa12bd9c0ab to your computer and use it in GitHub Desktop.

Select an option

Save stevro/e7a067d449bccf3854818fa12bd9c0ab to your computer and use it in GitHub Desktop.
smekerie la js
var requireTrans = require.context('../public/js/translations', true, /\.json$/);
requireTrans.keys().forEach(function(elem){
Translator.fromJSON(requireTrans(elem));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment