mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Use import syntax
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
let each = require('lodash').each;
|
||||
let t = require('../helpers/translator');
|
||||
import {each} from 'lodash';
|
||||
import t from '../helpers/translator';
|
||||
|
||||
const DROP_EGGS = [
|
||||
'Wolf',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
let t = require('./helpers/translator');
|
||||
import t from './helpers/translator';
|
||||
|
||||
const NUMBER_OF_QUESTIONS = 12;
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
require('coffee-script');
|
||||
var i18n = require('../../../../script/i18n.coffee');
|
||||
import i18n from '../../../../script/i18n.coffee';
|
||||
|
||||
var t = function(string, vars) {
|
||||
var func = function(lang) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
let each = require('lodash').each;
|
||||
import {each} from 'lodash';
|
||||
|
||||
let mysterySets = {
|
||||
201402: {
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
var t = require('../helpers/translator.js');
|
||||
import t from '../helpers/translator';
|
||||
|
||||
/*
|
||||
---------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
let t = require('./helpers/translator');
|
||||
import t from './helpers/translator';
|
||||
|
||||
let stable = {
|
||||
pets: {
|
||||
|
||||
Reference in New Issue
Block a user