mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
fix exports
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import i18n from '../i18n';
|
||||
|
||||
module.exports = function translator (string, vars = { a: 'a' }) {
|
||||
export default function translator (string, vars = { a: 'a' }) {
|
||||
function func (lang) {
|
||||
return i18n.t(string, vars, lang);
|
||||
}
|
||||
@@ -8,4 +8,4 @@ module.exports = function translator (string, vars = { a: 'a' }) {
|
||||
func.i18nLangFunc = true; // Trick to recognize this type of function
|
||||
|
||||
return func;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user