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.
@@ -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
- subpath = subpath ? subpath.replaceAll('/', '.') + '.' : '';
149
- this.parseTranslation(subpath, lang, json);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zumito-framework",
3
- "version": "1.1.47",
3
+ "version": "1.1.48",
4
4
  "description": "Discord.js bot framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",