We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78c7b96 commit 2f353f0Copy full SHA for 2f353f0
src/utils/i18n.ts
@@ -3,12 +3,15 @@ import fs from 'fs';
3
import i18next from 'i18next';
4
import path from 'path';
5
6
-const __dirname = path.resolve(process.cwd(), 'src', 'utils');
+
7
+const currentDir = __dirname;
8
9
const languages = ['en', 'pt-BR', 'es'];
-const translationsPath = path.join(__dirname, 'translations');
10
-const configService: ConfigService = new ConfigService();
11
+const translationsPath = path.join(currentDir, 'translations');
12
13
14
+const configService: ConfigService = new ConfigService();
15
const resources: any = {};
16
17
languages.forEach((language) => {
@@ -31,4 +34,4 @@ i18next.init({
31
34
escapeValue: false,
32
35
},
33
36
});
-export default i18next;
37
+export default i18next;
0 commit comments