mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
Add lang atttribute on multilingual names, wikidata/wikipedia fields (#10716)
This improves rendering of CJK names that contain unified ideographs that share a unicode codepoint, such as 化.
This commit is contained in:
@@ -166,4 +166,14 @@ describe('iD.uiFieldLocalized', function() {
|
||||
done();
|
||||
}, 20);
|
||||
});
|
||||
|
||||
it('has a lang attribute on an existing multilingual name field', function(done) {
|
||||
var localized = iD.uiFieldLocalized(field, context);
|
||||
localized.tags({'name:de': 'Value'});
|
||||
window.setTimeout(function() {
|
||||
selection.call(localized);
|
||||
expect(selection.selectAll('.localized-value').attr('lang')).to.eql('de');
|
||||
done();
|
||||
}, 20);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user