@cellarnode/i18n 0.3.1 → 0.3.3

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.
@@ -13,9 +13,13 @@ declare const _default: {
13
13
  input: string[];
14
14
  output: string;
15
15
  defaultNamespace: string;
16
+ ignore: string[];
16
17
  };
17
18
  lint: {
18
19
  enabled: boolean;
20
+ ignore: string[];
21
+ ignoredAttributes: string[];
22
+ ignoredTags: string[];
19
23
  };
20
24
  };
21
25
  export default _default;
@@ -14,8 +14,52 @@ export default {
14
14
  input: ['src/**/*.{ts,tsx}'],
15
15
  output: 'public/locales/{{language}}/{{namespace}}.json',
16
16
  defaultNamespace: 'common',
17
+ ignore: [
18
+ 'src/components/ui/**', // shadcn/ui primitives — don't instrument
19
+ 'src/hooks/**', // hooks — no user-facing text
20
+ 'src/lib/**', // utilities, API clients
21
+ 'src/providers/**', // context providers
22
+ 'src/integrations/**', // third-party integrations
23
+ 'src/assets/**', // static assets
24
+ 'src/__tests__/**', // test files
25
+ 'src/routeTree.gen.ts', // auto-generated route tree
26
+ ],
17
27
  },
18
28
  lint: {
19
29
  enabled: true,
30
+ ignore: [
31
+ 'src/components/ui/**',
32
+ 'src/hooks/**',
33
+ 'src/lib/**',
34
+ 'src/providers/**',
35
+ 'src/integrations/**',
36
+ 'src/@types/**',
37
+ 'src/routeTree.gen.ts',
38
+ 'src/assets/**',
39
+ ],
40
+ // Attributes that often contain brand names, URLs, or non-translatable identifiers
41
+ ignoredAttributes: [
42
+ 'href',
43
+ 'src',
44
+ 'target',
45
+ 'rel',
46
+ 'type',
47
+ 'id',
48
+ 'name',
49
+ 'className',
50
+ 'htmlFor',
51
+ 'role',
52
+ 'viewBox',
53
+ 'd', // SVG path data
54
+ ],
55
+ // Tags whose text content is typically not user-facing prose
56
+ ignoredTags: [
57
+ 'code',
58
+ 'pre',
59
+ 'script',
60
+ 'style',
61
+ 'svg',
62
+ 'path',
63
+ ],
20
64
  },
21
65
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellarnode/i18n",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Shared i18n configuration for CellarNode frontends — language constants, i18next factory, browser locale detection, and common translations.",
5
5
  "license": "MIT",
6
6
  "type": "module",