From 87b17a2fbbf2dad6403fd3d736094a3c2054b5a4 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 16 Jun 2017 11:03:00 -0400 Subject: [PATCH] Add translation for attribution text --- modules/ui/attribution.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ui/attribution.js b/modules/ui/attribution.js index 7f445e40f..73f849ff7 100644 --- a/modules/ui/attribution.js +++ b/modules/ui/attribution.js @@ -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 = '';