mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 11:31:23 +01:00
fixes #5927
This commit is contained in:
@@ -439,6 +439,9 @@ app.cacheBuster = null;
|
||||
.replace('{pageTitle}', function () { return title; })
|
||||
.replace('{browserTitle}', function () { return config.browserTitle; });
|
||||
|
||||
// Allow translation strings in title on ajaxify (#5927)
|
||||
title = title.replace(/[/g, '[').replace(/]/g, ']');
|
||||
|
||||
translator.translate(title, function (translated) {
|
||||
titleObj.titles[0] = translated;
|
||||
app.alternatingTitle('');
|
||||
|
||||
Reference in New Issue
Block a user