Skip to content

Instantly share code, notes, and snippets.

@WebReflection
Created October 22, 2017 15:49
Show Gist options
  • Save WebReflection/8d26f957a5d1282dd3d7da17645f8fb1 to your computer and use it in GitHub Desktop.
Save WebReflection/8d26f957a5d1282dd3d7da17645f8fb1 to your computer and use it in GitHub Desktop.
A template literal tag function that does nothing.
function i18n(t) {
for (var o = [t[0]], i = 1, l = arguments.length; i < l; i++)
o.push(arguments[i], t[i]);
return o.join('');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment