Created
May 30, 2018 13:20
-
-
Save coderkan/d8a6d5303130c13b8c7e3ae62d70a4ac to your computer and use it in GitHub Desktop.
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 getLangResources(){ | |
// Define arrays how many language you want to translate | |
var tr = new Array(); | |
var en = new Array(); | |
// caption tag name | |
tr['hello_world'] = "Merhaba Dünya"; | |
en['hello_world'] = "Hello World"; | |
// Added new array defined arrays. | |
var resources = new Array(); | |
resources['tr'] = tr; | |
resources['en'] = en; | |
return resources; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment