I have an Add-In that works fine to install in an English setup of SharePoint. However, when I test this in another language I run into an issue.
The issue is with this code:
var list = web.get_lists().getByTitle("Style Library");
I get the error that the list "Style Library" can't be found on the site https://***.sharepoint.com/sites/Testsite
.
In addition to this I also need the following to be language independent:
list.get_fields().getByTitle("Title");
How can I do this in another way without being language dependent? I've tried to search everywhere but can't find a way. Is this something to do with "Metadata Language"? Can that be changed for an Add-In?