mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 16:19:48 +02:00
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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user