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
+2 -2
View File
@@ -31,7 +31,7 @@ export function uiSourceSwitch(context) {
context.flush(); // remove stored data
d3_select(this)
.html(isLive ? t('source_switch.live') : t('source_switch.dev'))
.html(isLive ? t.html('source_switch.live') : t.html('source_switch.dev'))
.classed('live', isLive)
.classed('chip', isLive);
@@ -42,7 +42,7 @@ export function uiSourceSwitch(context) {
selection
.append('a')
.attr('href', '#')
.html(t('source_switch.live'))
.html(t.html('source_switch.live'))
.attr('class', 'live chip')
.on('click', click);
};