@arch-cadre/intl 0.0.58 → 0.0.60

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.
@@ -56,7 +56,7 @@ export async function getMessages(locale, searchDirectories) {
56
56
  await fs.access(localeDir);
57
57
  const files = await fs.readdir(localeDir);
58
58
  for (const file of files) {
59
- if (file.endsWith("on")) {
59
+ if (file.endsWith("json")) {
60
60
  const filePath = path.join(localeDir, file);
61
61
  const fileContent = await fs.readFile(filePath, "utf-8");
62
62
  const jsonContent = JSON.parse(fileContent);
@@ -64,7 +64,7 @@ export async function getMessages(locale, searchDirectories) {
64
64
  }
65
65
  }
66
66
  }
67
- catch (error) {
67
+ catch (_e) {
68
68
  // Ignore missing directories
69
69
  }
70
70
  }
@@ -40,7 +40,7 @@ export async function discoverLocalePaths() {
40
40
  }
41
41
  }
42
42
  }
43
- catch (e) { }
43
+ catch (_e) { }
44
44
  }
45
45
  // 2. node_modules/@arch-cadre scan (relative to app root)
46
46
  const nodeModulesKryo = path.join(root, "node_modules", "@arch-cadre");
@@ -55,7 +55,7 @@ export async function discoverLocalePaths() {
55
55
  catch { }
56
56
  }
57
57
  }
58
- catch (e) { }
58
+ catch (_e) { }
59
59
  // 3. Local 'modules' scan (relative to app root)
60
60
  const localModulesDir = path.join(root, "modules");
61
61
  try {
@@ -71,7 +71,7 @@ export async function discoverLocalePaths() {
71
71
  }
72
72
  }
73
73
  }
74
- catch (e) { }
74
+ catch (_e) { }
75
75
  return Array.from(new Set(paths));
76
76
  }
77
77
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arch-cadre/intl",
3
- "version": "0.0.58",
3
+ "version": "0.0.60",
4
4
  "type": "module",
5
5
  "description": "Core Intl for Kryo framework",
6
6
  "types": "./dist/index.d.ts",