@molecule/app-locales-feature-map-drawing 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +63 -0
  2. package/package.json +9 -3
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ <!--
2
+ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
+ Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
+ Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
+ To change this document, edit the module-level JSDoc in src/index.ts.
6
+ Generated: 2026-08-04T00:39:57.197Z
7
+ -->
8
+
9
+ # @molecule/app-locales-feature-map-drawing
10
+
11
+ > **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
12
+ > It is written to be read by coding agents as much as by people, and is generated from this
13
+ > package's source — edit `src/index.ts` JSDoc, not this file.
14
+
15
+ Translations for @molecule/app-map-drawing-react in 79 languages
16
+
17
+ ## Languages
18
+
19
+ 79 languages supported: af, am, ar, az, be, bg, bn, bs, ca, cs, cy, da, de, el, en, es, et, eu, fa, fi, fil, fr, ga, gl, gu, ha, he, hi, hr, hu, hy, id, ig, is, it, ja, ka, kk, km, kn, ko, ky, lo, lt, lv, mk, ml, mn, mr, ms, mt, my, nb, ne, nl, pa, pl, pt, ro, ru, si, sk, sl, sq, sr, sv, sw, ta, te, th, tr, uk, ur, uz, vi, yo, zh, zh-TW, zu.
20
+
21
+ ## Quick Start
22
+
23
+ ```typescript
24
+ import { af, am, ar } from '@molecule/app-locales-feature-map-drawing'
25
+ import type {
26
+ MapDrawingTranslationKey,
27
+ MapDrawingTranslations,
28
+ } from '@molecule/app-locales-feature-map-drawing'
29
+ ```
30
+
31
+ ## Registration
32
+
33
+ In an mlcl-scaffolded app, installed locale bonds are registered automatically by the app's i18n setup at startup — installing this package is normally all you need. To register manually (or in a custom app), pass the whole module to `registerLocaleModule` from `@molecule/app-i18n` at startup:
34
+
35
+ ```typescript
36
+ import { registerLocaleModule } from '@molecule/app-i18n'
37
+ import * as locales from '@molecule/app-locales-feature-map-drawing'
38
+
39
+ registerLocaleModule(locales)
40
+ ```
41
+
42
+ ## Editing translations
43
+
44
+ `en.ts` is the canonical key set — every other language file mirrors its keys. To change or add strings, edit the locale files in this package (add new keys to `en.ts` first) or merge overrides at runtime with `addTranslations(locale, map)`. Never hand-write translations inline in feature code: features call `t(key, values, { defaultValue })` and THIS bond supplies the translations — inline strings bypass every other language.
45
+
46
+ ## Translation Keys
47
+
48
+ | Key | English |
49
+ | ------------------------- | ------------------- |
50
+ | `mapDrawing.toolbar.aria` | Map drawing tools |
51
+ | `mapDrawing.surface.aria` | Map drawing surface |
52
+ | `mapDrawing.tool.polygon` | Polygon |
53
+ | `mapDrawing.tool.circle` | Circle |
54
+ | `mapDrawing.tool.pin` | Pin |
55
+ | `mapDrawing.tool.line` | Line |
56
+ | `mapDrawing.tool.select` | Select |
57
+ | `mapDrawing.tool.delete` | Delete |
58
+
59
+ ## Metadata
60
+
61
+ - **Type:** locales
62
+ - **Category:** i18n
63
+ - **Stack:** app
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-locales-feature-map-drawing",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Translations for @molecule/app-map-drawing-react in 79 languages",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -12,15 +12,21 @@
12
12
  }
13
13
  },
14
14
  "files": [
15
- "dist"
15
+ "dist",
16
+ "README.md"
16
17
  ],
17
18
  "scripts": {
18
19
  "build": "tsc",
19
20
  "test": "vitest run"
20
21
  },
21
22
  "license": "Apache-2.0",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/molecule-dev/molecule.git",
26
+ "directory": "packages/app/locales/feature-map-drawing"
27
+ },
22
28
  "peerDependencies": {
23
- "@molecule/app-i18n": "^1.0.0"
29
+ "@molecule/app-i18n": "^1.0.1"
24
30
  },
25
31
  "devDependencies": {
26
32
  "typescript": "6.0.3",