From 105e4ec887e249ec47db83095504012bad22df80 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 3 Sep 2021 00:21:33 -0700 Subject: More translation migrations --- modern/src/map/Map.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modern/src/map') diff --git a/modern/src/map/Map.js b/modern/src/map/Map.js index 9e31fa15..1fa4db5d 100644 --- a/modern/src/map/Map.js +++ b/modern/src/map/Map.js @@ -10,10 +10,13 @@ import { prepareIcon, loadImage } from './mapUtil'; import { styleCarto, styleMapbox, styleMapTiler, styleOsm, } from './mapStyles'; -import t from '../LocalizationProvider'; import { useAttributePreference } from '../common/preferences'; import palette from '../theme/palette'; +// TODO fix localization +import en from '../../../web/l10n/en.json'; +const t = (key) => en[key]; + const element = document.createElement('div'); element.style.width = '100%'; element.style.height = '100%'; -- cgit v1.2.3