Lint fixes

This commit is contained in:
Juan Camilo González
2020-11-30 09:19:23 -05:00
parent c0a7036803
commit ffdb330f7f
4 changed files with 12 additions and 12 deletions

View File

@@ -413,12 +413,12 @@ export function makeNiceDate (datetime) {
* Sets the default locale for d3 to format dates in each available language.
* @param {Object} d3 - An instance of D3
*/
export function setD3Locale(d3) {
export function setD3Locale (d3) {
const languages = {
'es-MX': require('./data/es-MX.json')
}
if (process.env.store.app.language !== 'es-US' && languages[process.env.store.app.language]) {
d3.timeFormatDefaultLocale(languages[process.env.store.app.language]);
d3.timeFormatDefaultLocale(languages[process.env.store.app.language])
}
}
}