Revert t function to returning the plain string by default

Add `t.html` function for getting the string with the `lang` attribute
This commit is contained in:
Quincy Morgan
2020-09-22 12:03:29 -04:00
parent a3549f9a76
commit 5435082d9c
132 changed files with 597 additions and 580 deletions

View File

@@ -223,7 +223,7 @@ export function uiCommit(context) {
.append('div')
.attr('class', 'header-block')
.append('h3')
.html(t('commit.title'));
.html(t.html('commit.title'));
headerTitle
.append('div')
@@ -283,7 +283,7 @@ export function uiCommit(context) {
prose = prose.enter()
.append('p')
.attr('class', 'commit-info')
.html(t('commit.upload_explanation'))
.html(t.html('commit.upload_explanation'))
.merge(prose);
// always check if this has changed, but only update prose.html()
@@ -311,7 +311,7 @@ export function uiCommit(context) {
.attr('target', '_blank');
prose
.html(t('commit.upload_explanation_with_user', { user: userLink.html() }));
.html(t.html('commit.upload_explanation_with_user', { user: userLink.html() }));
});
@@ -337,7 +337,7 @@ export function uiCommit(context) {
labelEnter
.append('span')
.html(t('commit.request_review'));
.html(t.html('commit.request_review'));
// Update
requestReview = requestReview
@@ -362,7 +362,7 @@ export function uiCommit(context) {
.attr('class', 'secondary-action button cancel-button')
.append('span')
.attr('class', 'label')
.html(t('commit.cancel'));
.html(t.html('commit.cancel'));
var uploadButton = buttonEnter
.append('button')
@@ -370,7 +370,7 @@ export function uiCommit(context) {
uploadButton.append('span')
.attr('class', 'label')
.html(t('commit.save'));
.html(t.html('commit.save'));
var uploadBlockerTooltipText = getUploadBlockerMessage();