zumito-framework 1.1.47 → 1.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/Module.js +3 -3
- package/package.json +1 -1
package/dist/types/Module.js
CHANGED
|
@@ -145,10 +145,10 @@ export class Module {
|
|
|
145
145
|
if (file.endsWith('.json')) {
|
|
146
146
|
let json = await this.loadTranslationFile(subpath, file);
|
|
147
147
|
let lang = file.slice(0, -5);
|
|
148
|
-
|
|
149
|
-
this.parseTranslation(
|
|
148
|
+
let baseKey = subpath ? subpath.replaceAll('/', '.').replaceAll('\\', '.') + '.' : '';
|
|
149
|
+
this.parseTranslation(baseKey, lang, json);
|
|
150
150
|
}
|
|
151
|
-
else if (fs.lstatSync(path.join(this.path, 'translations', file)).isDirectory()) {
|
|
151
|
+
else if (fs.lstatSync(path.join(this.path, 'translations', subpath, file)).isDirectory()) {
|
|
152
152
|
await this.registerTranslations(path.join(subpath, file));
|
|
153
153
|
}
|
|
154
154
|
}
|