Overriding language strings
Overriding language strings

Is there a possibility to override the language strings when use language.url? I would like to use the translations provided, but just change one of them to another string.
E.g.:
language: {
url: 'de.json',
search: 'Suche etwas hier'
}
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
No sorry. The strings from the de.json file would be used in preference to the local ones.
I recognise that this isn't particularly useful and it will be corrected in the next major version.
In the mean time you would need to make the Ajax call to get the language file yourself, modify the object as needed and then pass it into
language
.Allan
I'm needing the exact same thing right now. Will use the workaround then. Thanks.
I needed the same. The workaround was a bit complicated to find, but the final solution is pretty straightforward.
My previous javascript code was:
Now I replaced it with:
That's a good way of doing it - thanks for posting your solution.
Allan