Skip to content

Commit 2f353f0

Browse files
committed
FIX(i18n): Substituição direta no main do arquivo de tradução
1 parent 78c7b96 commit 2f353f0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/utils/i18n.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ import fs from 'fs';
33
import i18next from 'i18next';
44
import path from 'path';
55

6-
const __dirname = path.resolve(process.cwd(), 'src', 'utils');
6+
7+
const currentDir = __dirname;
78

89
const languages = ['en', 'pt-BR', 'es'];
9-
const translationsPath = path.join(__dirname, 'translations');
10-
const configService: ConfigService = new ConfigService();
1110

11+
const translationsPath = path.join(currentDir, 'translations');
12+
13+
14+
const configService: ConfigService = new ConfigService();
1215
const resources: any = {};
1316

1417
languages.forEach((language) => {
@@ -31,4 +34,4 @@ i18next.init({
3134
escapeValue: false,
3235
},
3336
});
34-
export default i18next;
37+
export default i18next;

0 commit comments

Comments
 (0)