Created
October 22, 2017 15:49
-
-
Save WebReflection/8d26f957a5d1282dd3d7da17645f8fb1 to your computer and use it in GitHub Desktop.
A template literal tag function that does nothing.
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
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