Add lang in GET params on share/update

parent 3e1fce1b
Pipeline #1494 passed with stage
in 42 seconds
......@@ -87,7 +87,8 @@ function buildUrl(req) {
+ req.headers.host + '/'
+ (config.subdir || '')
+ '?'
+ querystring.stringify(req.args);
+ querystring.stringify(req.args)
+ '&lang=' + req.i18n.getLocale();
}
function tweetMessage(req) {
......
......@@ -122,6 +122,7 @@ let draw = function() {
+ '&text=' + encodeURIComponent(fillText)
+ '&font=' + encodeURIComponent(font)
+ '&icon=' + encodeURIComponent(icon)
+ '&lang=' + encodeURIComponent(language)
+ '&signature=' + encodeURIComponent(document.getElementById('signature').value)
+ window.location.hash);
}, false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment