mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
Add translation for attribution text
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import * as d3 from 'd3';
|
||||
import _ from 'lodash';
|
||||
import { t } from '../util/locale';
|
||||
|
||||
|
||||
export function uiAttribution(context) {
|
||||
@@ -32,7 +33,9 @@ export function uiAttribution(context) {
|
||||
return;
|
||||
}
|
||||
|
||||
var source = d.terms_text || d.id || d.name();
|
||||
var source = t('imagery.' + d.id + '.attribution.text',
|
||||
{ default: d.terms_text || d.id || d.name() }
|
||||
);
|
||||
|
||||
if (d.logo) {
|
||||
source = '<img class="source-image" src="' + context.imagePath(d.logo) + '">';
|
||||
|
||||
Reference in New Issue
Block a user