cleaned up lodash imports
This commit is contained in:
parent
f9767ec3cf
commit
1ee18a7fa3
15 changed files with 19 additions and 27 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import ISO6391 from 'iso-639-1'
|
||||
import _ from 'lodash'
|
||||
import { map } from 'lodash'
|
||||
|
||||
import languagesObject from '../../i18n/messages'
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ const getLanguageName = (code) => {
|
|||
)
|
||||
}
|
||||
|
||||
const languages = _.map(languagesObject.languages, (code) => ({
|
||||
const languages = map(languagesObject.languages, (code) => ({
|
||||
code,
|
||||
name: getLanguageName(code),
|
||||
})).sort((a, b) => a.name.localeCompare(b.name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue