Anything that might be localized (text, url's) should be taken out of the .js files
Anything that might be localized (text, url's) should be taken out of the .js files. Not sure what is the better implementation, but may allow us to use json to "feed" the data into the appropriate classes and functions?
1
vote

-
Anonymous commented
Specifically I need to somehow replace the PhotoSwipeUI_Default.sharebuttons[].label English texts with texts localized to the user's language. How do I do this at runtime?