Add (dumb) versionning on i18n js

This commit is contained in:
TW - Vincent 2025-09-21 13:25:41 +02:00 committed by GitHub
parent 5bd550e61d
commit cab2d0a34e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -930,7 +930,7 @@ jQuery.PrivateBin = (function($) {
}
// load strings from JSON
$.getJSON('i18n/' + newLanguage + '.json', function(data) {
$.getJSON('i18n/' + newLanguage + '.json?v=' + Math.floor(Date.now() / 60000), function(data) {
language = newLanguage;
translations = data;
$(document).triggerHandler(languageLoadedEvent);