Merge branch 'develop' into main

This commit is contained in:
dersonbsb2022
2025-10-06 15:21:10 -03:00
committed by GitHub
14 changed files with 396 additions and 145 deletions

View File

@@ -23,15 +23,17 @@ const configService: ConfigService = new ConfigService();
const resources: any = {};
languages.forEach((language) => {
const languagePath = path.join(translationsPath, `${language}.json`);
if (fs.existsSync(languagePath)) {
const translationContent = fs.readFileSync(languagePath, 'utf8');
resources[language] = {
translation: JSON.parse(translationContent),
};
}
});
if (translationsPath) {
languages.forEach((language) => {
const languagePath = path.join(translationsPath, `${language}.json`);
if (fs.existsSync(languagePath)) {
const translationContent = fs.readFileSync(languagePath, 'utf8');
resources[language] = {
translation: JSON.parse(translationContent),
};
}
});
}
i18next.init({
resources,