Skip to content

Commit 3ef1f0f

Browse files
author
Paweł Marynowski
committed
feat(map): load languages, remove import
1 parent d0350ce commit 3ef1f0f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/main/map/map.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import _ from 'lodash';
2-
31
import './map.scss';
42
import template from './map.html';
53

@@ -21,6 +19,10 @@ function controller($location, $scope, $state, $stateParams, $timeout, leafletDa
2119

2220
// activate
2321

22+
let langs = $stateParams.lang ? [$stateParams.lang] : [];
23+
langs = langs.concat(localStorageService.get('languages') || ['en', 'de']);
24+
wikidata.setLanguages(langs);
25+
2426
$scope.$on('centerUrlHash', (event, centerHash) => {
2527
$location.search({ c: centerHash });
2628
});

0 commit comments

Comments
 (0)