From f5fd523ca7edfc62889ac7f4c8c3bd7046987654 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 11 Jul 2018 14:19:55 +0900 Subject: [PATCH] Fix bug --- locales/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/index.js b/locales/index.js index 95cc33916..f11ce7b57 100644 --- a/locales/index.js +++ b/locales/index.js @@ -6,7 +6,7 @@ const fs = require('fs'); const yaml = require('js-yaml'); const loadLang = lang => yaml.safeLoad( - fs.readFileSync(`./locales/${lang}.yml`, 'utf-8')); + fs.readFileSync(`${__dirname}/${lang}.yml`, 'utf-8')); const native = loadLang('ja');